X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e9b921dc6b84d9d4beb1a5bbd2380910073c7ae..43a302f200f1e9f5f21380bbc7ba74ad8c22d6d6:/include/wx/msw/app.h diff --git a/include/wx/msw/app.h b/include/wx/msw/app.h index 601c4ab932..0295db6ce4 100644 --- a/include/wx/msw/app.h +++ b/include/wx/msw/app.h @@ -23,7 +23,7 @@ class WXDLLIMPEXP_FWD_BASE wxLog; // Represents the application. Derive OnInit and declare // a new App object to start application -class WXDLLEXPORT wxApp : public wxAppBase +class WXDLLIMPEXP_CORE wxApp : public wxAppBase { DECLARE_DYNAMIC_CLASS(wxApp) @@ -81,6 +81,26 @@ protected: DECLARE_NO_COPY_CLASS(wxApp) }; +#ifdef __WXWINCE__ + +// under CE provide a dummy implementation of GetComCtl32Version() returning +// the value passing all ">= 470" tests (which are the only ones used in our +// code currently) as commctrl.dll under CE 2.0 and later support comctl32.dll +// functionality +inline int wxApp::GetComCtl32Version() +{ + return 471; +} + +// this is not currently used at all under CE so it's not really clear what do +// we need to return from here +inline int wxApp::GetShell32Version() +{ + return 0; +} + +#endif // __WXWINCE__ + // ---------------------------------------------------------------------------- // MSW-specific wxEntry() overload and IMPLEMENT_WXWIN_MAIN definition // ---------------------------------------------------------------------------- @@ -102,17 +122,17 @@ protected: // wxMSW-only overloads of wxEntry() and wxEntryStart() which take the // parameters passed to WinMain() instead of those passed to main() -extern bool WXDLLEXPORT -wxEntryStart(HINSTANCE hInstance, - HINSTANCE hPrevInstance = NULL, - wxCmdLineArgType pCmdLine = NULL, - int nCmdShow = SW_SHOWNORMAL); - -extern int WXDLLEXPORT -wxEntry(HINSTANCE hInstance, - HINSTANCE hPrevInstance = NULL, - wxCmdLineArgType pCmdLine = NULL, - int nCmdShow = SW_SHOWNORMAL); +extern WXDLLIMPEXP_CORE bool + wxEntryStart(HINSTANCE hInstance, + HINSTANCE hPrevInstance = NULL, + wxCmdLineArgType pCmdLine = NULL, + int nCmdShow = SW_SHOWNORMAL); + +extern WXDLLIMPEXP_CORE int + wxEntry(HINSTANCE hInstance, + HINSTANCE hPrevInstance = NULL, + wxCmdLineArgType pCmdLine = NULL, + int nCmdShow = SW_SHOWNORMAL); #define IMPLEMENT_WXWIN_MAIN \ extern "C" int WINAPI WinMain(HINSTANCE hInstance, \