#endif
#ifndef WX_PRECOMP
+ #include "wx/app.h"
+ #include "wx/msw/wrapcctl.h"
#endif // WX_PRECOMP
#if wxUSE_DATEPICKCTRL || wxUSE_CALENDARCTRL
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 );