Index: src/ch/ch.h =================================================================== diff -u -N -r17059054c69cd5726f4c7d35357f3b9556471783 -r2457755b4084e3d1c80a8e7c77c9f0996312941b --- src/ch/ch.h (.../ch.h) (revision 17059054c69cd5726f4c7d35357f3b9556471783) +++ src/ch/ch.h (.../ch.h) (revision 2457755b4084e3d1c80a8e7c77c9f0996312941b) @@ -28,8 +28,8 @@ #include "CfgProperties.h" #include "../chext/chext.h" #include "../libicpf/log.h" -#include "../libchcore/EngineCfg.h" #include "../libictranslate/ResourceManager.h" +#include "../libchcore/TCoreConfig.h" using namespace std; @@ -44,50 +44,36 @@ CCopyHandlerApp(); ~CCopyHandlerApp(); -// Overrides -public: virtual BOOL InitInstance(); + virtual int ExitInstance(); - virtual void HtmlHelp(DWORD_PTR dwData, UINT nCmd); PCTSTR GetHelpPath() const { return m_pszHelpFilePath; }; - friend LRESULT MainRouter(ULONGLONG ullDst, UINT uiMsg, WPARAM wParam, LPARAM lParam); friend int MsgBox(UINT uiID, UINT nType=MB_OK, UINT nIDHelp=0); + + friend LRESULT MainRouter(ULONGLONG ullDst, UINT uiMsg, WPARAM wParam, LPARAM lParam); friend CCopyHandlerApp& GetApp(); friend ictranslate::CResourceManager& GetResManager(); - friend chcore::engine_config& GetConfig(); -// friend CLogFile* GetLog(); + friend chcore::TCoreConfig& GetConfig(); bool IsShellExtEnabled() const; void OnConfigNotify(uint_t uiPropID); void OnResManNotify(UINT uiType); + protected: bool UpdateHelpPaths(); - HWND HHelp(HWND hwndCaller, LPCTSTR pszFile, UINT uCommand, DWORD dwData); + HWND HHelp(HWND hwndCaller, LPCTSTR pszFile, UINT uCommand, DWORD_PTR dwData); -public: - icpf::log_file m_lfLog; - +protected: + HANDLE m_hMapObject; IShellExtControl* m_piShellExtControl; CWnd *m_pMainWindow; - // currently opened dialogs -// list m_lhDialogs; -protected: -// Implementation - HANDLE m_hMapObject; - //TCHAR m_szHelpPath[_MAX_PATH]; // full file path to the help file -// CString m_strCrashInfo; // crash info text - - //{{AFX_MSG(CCopyHandlerApp) - //}}AFX_MSG DECLARE_MESSAGE_MAP() -public: - virtual int ExitInstance(); };