Index: src/ch/ch.h =================================================================== diff -u -N -rf6c4389122d92e5f84a509e9be0facebac429151 -rd0fdcc905035e648382256101a3d99f429af6d56 --- src/ch/ch.h (.../ch.h) (revision f6c4389122d92e5f84a509e9be0facebac429151) +++ src/ch/ch.h (.../ch.h) (revision d0fdcc905035e648382256101a3d99f429af6d56) @@ -26,6 +26,7 @@ #include "resource.h" // main symbols #include "AppHelper.h" #include "CfgProperties.h" +#include "../chext/chext.h" //#include "LogFile.h" #include "../libicpf/log.h" #include "../libchcore/EngineCfg.h" @@ -41,17 +42,14 @@ class CCopyHandlerApp : public CWinApp, public CAppHelper { public: -// BOOL RegisterShellExt(); CCopyHandlerApp(); ~CCopyHandlerApp(); // Overrides - // ClassWizard generated virtual function overrides - //{{AFX_VIRTUAL(CCopyHandlerApp) - public: +public: virtual BOOL InitInstance(); - //}}AFX_VIRTUAL + virtual void HtmlHelp(DWORD_PTR dwData, UINT nCmd); PCTSTR GetHelpPath() const { return m_pszHelpFilePath; }; @@ -63,6 +61,8 @@ friend chcore::engine_config* GetConfig(); // friend CLogFile* GetLog(); + bool IsShellExtEnabled() const; + void OnConfigNotify(uint_t uiPropID); void OnResManNotify(UINT uiType); protected: @@ -75,6 +75,8 @@ chcore::engine_config m_cfgSettings; icpf::log_file m_lfLog; + IShellExtControl* m_piShellExtControl; + CWnd *m_pMainWindow; // currently opened dialogs // list m_lhDialogs; @@ -88,6 +90,8 @@ //{{AFX_MSG(CCopyHandlerApp) //}}AFX_MSG DECLARE_MESSAGE_MAP() +public: + virtual int ExitInstance(); };