X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fe2804ebbb76bd6b2c7f49afc6bb6317f166043..69d31e313035d5e22d9400ec946f6007f710910c:/src/msw/datecontrols.cpp?ds=sidebyside 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 );