Index: src/ch/ch.h =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r33b33baa373533d0cff8ea5d25154b370f2b2e05 --- src/ch/ch.h (.../ch.h) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/ch/ch.h (.../ch.h) (revision 33b33baa373533d0cff8ea5d25154b370f2b2e05) @@ -41,7 +41,7 @@ PCTSTR GetHelpPath() const { return m_pszHelpFilePath; } - friend int MsgBox(UINT uiID, UINT nType=MB_OK, UINT nIDHelp=0); + static int MsgBox(UINT uiID, UINT nType=MB_OK, UINT nIDHelp=0); friend CCopyHandlerApp& GetApplication(); static ictranslate::CResourceManager& GetResManager(); @@ -88,6 +88,8 @@ void InitLoggers(); }; +CCopyHandlerApp& GetApplication(); + inline CCopyHandlerApp& GetApp() { return GetApplication(); @@ -113,4 +115,9 @@ return GetApp().GetShellExtensionConfig(); } +inline int MsgBox(UINT uiID, UINT nType = MB_OK, UINT nIDHelp = 0) +{ + return GetApp().MsgBox(uiID, nType, nIDHelp); +} + #endif