X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51317496171b33f2abb155a1214f567b79d66e43..404b319a85dadd7decf7a5a5331020520031a41c:/src/msw/datecontrols.cpp?ds=sidebyside diff --git a/src/msw/datecontrols.cpp b/src/msw/datecontrols.cpp index e850351077..10e69f55b0 100644 --- a/src/msw/datecontrols.cpp +++ b/src/msw/datecontrols.cpp @@ -24,6 +24,8 @@ #endif #ifndef WX_PRECOMP + #include "wx/app.h" + #include "wx/msw/wrapcctl.h" #endif // WX_PRECOMP #if wxUSE_DATEPICKCTRL || wxUSE_CALENDARCTRL @@ -65,10 +67,13 @@ bool wxMSWDateControls::CheckInitialization() icex.dwSize = sizeof(icex); icex.dwICC = ICC_DATE_CLASSES; - wxDynamicLibrary dllComCtl32(_T("comctl32.dll") , wxDL_VERBATIM); - + // see comment in wxApp::GetComCtl32Version() explaining the + // use of wxLoadedDLL + wxLoadedDLL dllComCtl32(wxT("comctl32.dll")); if ( dllComCtl32.IsLoaded() ) { + wxLogNull noLog; + typedef BOOL (WINAPI *ICCEx_t)(INITCOMMONCONTROLSEX *); wxDYNLIB_FUNCTION( ICCEx_t, InitCommonControlsEx, dllComCtl32 );