|
| |
1 |
|
|
|
| |
2 |
|
|
|
| |
3 |
|
|
|
| |
4 |
|
|
|
| |
5 |
|
|
|
| |
6 |
|
|
|
| |
7 |
|
|
|
| |
8 |
|
|
|
| |
9 |
|
|
|
| |
10 |
|
|
|
| |
11 |
|
|
|
| |
12 |
|
|
|
| |
13 |
|
|
|
| |
14 |
|
|
|
| |
15 |
|
|
|
| |
16 |
|
|
|
| |
17 |
|
|
|
| |
18 |
|
|
|
| |
19 |
|
|
|
| |
20 |
|
|
|
| |
21 |
|
#ifndef __COPYHANDLER_H__ |
|
| |
22 |
|
#define __COPYHANDLER_H__ |
|
| |
23 |
|
|
|
| |
24 |
|
#ifndef __AFXWIN_H__ |
|
| |
25 |
|
#error include 'stdafx.h' before including this file for PCH |
|
| |
26 |
|
#endif |
|
| |
27 |
|
|
|
| |
28 |
|
#include "resource.h" // main symbols |
|
| |
29 |
|
#include "AppHelper.h" |
|
| |
30 |
|
#include "ResourceManager.h" |
|
| |
31 |
|
|
|
| |
32 |
|
#define DISABLE_CRYPT |
|
| |
33 |
|
#include "ConfigManager.h" |
|
| |
34 |
|
|
|
| |
35 |
|
#include "CfgProperties.h" |
|
| |
36 |
|
#include "LogFile.h" |
|
| |
37 |
|
|
|
| |
38 |
|
using namespace std; |
|
| |
39 |
|
|
|
| |
40 |
|
|
|
| |
41 |
|
|
|
| |
42 |
|
|
|
| |
43 |
|
|
|
| |
44 |
|
|
|
| |
45 |
|
class CCopyHandlerApp : public CWinApp, public CAppHelper |
|
| |
46 |
|
{ |
|
| |
47 |
|
public: |
|
| |
48 |
|
|
|
| |
49 |
|
CCopyHandlerApp(); |
|
| |
50 |
|
~CCopyHandlerApp(); |
|
| |
51 |
|
|
|
| |
52 |
|
|
|
| |
53 |
|
|
|
| |
54 |
|
|
|
| |
55 |
|
public: |
|
| |
56 |
|
virtual BOOL InitInstance(); |
|
| |
57 |
|
|
|
| |
58 |
|
|
|
| |
59 |
|
bool HtmlHelp(UINT uiCommand, LPARAM lParam); |
|
| |
60 |
|
|
|
| |
61 |
|
PCTSTR GetHelpPath() const { return m_szHelpPath; }; |
|
| |
62 |
|
|
|
| |
63 |
|
friend LRESULT MainRouter(ULONGLONG ullDst, UINT uiMsg, WPARAM wParam, LPARAM lParam); |
|
| |
64 |
|
friend int MsgBox(UINT uiID, UINT nType=MB_OK, UINT nIDHelp=0); |
|
| |
65 |
|
friend CCopyHandlerApp* GetApp(); |
|
| |
66 |
|
friend CResourceManager* GetResManager(); |
|
| |
67 |
|
friend CConfigManager* GetConfig(); |
|
| |
68 |
|
friend CLogFile* GetLog(); |
|
| |
69 |
|
|
|
| |
70 |
|
void OnConfigNotify(UINT uiType, LPARAM lParam); |
|
| |
71 |
|
void OnResManNotify(UINT uiType, LPARAM lParam); |
|
| |
72 |
|
protected: |
|
| |
73 |
|
bool UpdateHelpPaths(); |
|
| |
74 |
|
HWND HHelp(HWND hwndCaller, LPCSTR pszFile, UINT uCommand, DWORD dwData); |
|
| |
75 |
|
|
|
| |
76 |
|
public: |
|
| |
77 |
|
CResourceManager m_resManager; |
|
| |
78 |
|
CConfigManager m_cfgManager; |
|
| |
79 |
|
CLogFile m_lfLog; |
|
| |
80 |
|
|
|
| |
81 |
|
CWnd *m_pMainWindow; |
|
| |
82 |
|
|
|
| |
83 |
|
|
|
| |
84 |
|
|
|
| |
85 |
|
protected: |
|
| |
86 |
|
|
|
| |
87 |
|
HANDLE m_hMapObject; |
|
| |
88 |
|
TCHAR m_szHelpPath[_MAX_PATH]; |
|
| |
89 |
|
|
|
| |
90 |
|
|
|
| |
91 |
|
|
|
| |
92 |
|
DECLARE_MESSAGE_MAP() |
|
| |
93 |
|
}; |
|
| |
94 |
|
|
|
| |
95 |
|
|
|
| |
96 |
|
|
|
| |
97 |
|
|
|
| |
98 |
|
|
|
| |
99 |
|
|
|
| |
100 |
|
|
|
| |
101 |
|
#endif |