X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fe2804ebbb76bd6b2c7f49afc6bb6317f166043..b404a8f3b072129c107c6d9a5e0f6f53cd34807b:/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 );