X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8108518603f3bb5727f4da1e0d6847f683beefbf..b85b06e13d22e7fc1604ec1a49caa1227a1b3d36:/src/msw/datecontrols.cpp diff --git a/src/msw/datecontrols.cpp b/src/msw/datecontrols.cpp index 0ea7e786a1..9e71c5f8fc 100644 --- a/src/msw/datecontrols.cpp +++ b/src/msw/datecontrols.cpp @@ -68,12 +68,8 @@ bool wxMSWDateControls::CheckInitialization() icex.dwICC = ICC_DATE_CLASSES; // see comment in wxApp::GetComCtl32Version() explaining the - // use of wxDL_GET_LOADED - wxDynamicLibrary dllComCtl32(_T("comctl32.dll"), - wxDL_VERBATIM | - wxDL_QUIET | - wxDL_GET_LOADED); - + // use of wxLoadedDLL + wxLoadedDLL dllComCtl32(_T("comctl32.dll")); if ( dllComCtl32.IsLoaded() ) { wxLogNull noLog; @@ -81,8 +77,6 @@ bool wxMSWDateControls::CheckInitialization() typedef BOOL (WINAPI *ICCEx_t)(INITCOMMONCONTROLSEX *); wxDYNLIB_FUNCTION( ICCEx_t, InitCommonControlsEx, dllComCtl32 ); - dllComCtl32.Detach(); - if ( pfnInitCommonControlsEx ) { s_initResult = (*pfnInitCommonControlsEx)(&icex);