X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fe2804ebbb76bd6b2c7f49afc6bb6317f166043..dfb39a3727a85d0e075b10d9a9388be514d2f8e1:/src/msw/datecontrols.cpp?ds=sidebyside diff --git a/src/msw/datecontrols.cpp b/src/msw/datecontrols.cpp index 3af793ec52..501ff039fb 100644 --- a/src/msw/datecontrols.cpp +++ b/src/msw/datecontrols.cpp @@ -3,7 +3,6 @@ // Purpose: implementation of date controls helper functions // Author: Vadim Zeitlin // Created: 2008-04-04 -// RCS-ID: $Id$ // Copyright: (c) 2008 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -67,10 +66,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 );