X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fe2804ebbb76bd6b2c7f49afc6bb6317f166043..74b1f0b45e0f0bc7e25c5f32bb495e3e4bcd3392:/src/msw/datecontrols.cpp diff --git a/src/msw/datecontrols.cpp b/src/msw/datecontrols.cpp index 3af793ec52..10e69f55b0 100644 --- a/src/msw/datecontrols.cpp +++ b/src/msw/datecontrols.cpp @@ -67,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 );