]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wrapcctl.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/wrapcctl.h
3 // Purpose: Wrapper for the standard <commctrl.h> header
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MSW_WRAPCCTL_H_
13 #define _WX_MSW_WRAPCCTL_H_
15 // define _WIN32_IE to a high value because we always check for the version
16 // of installed DLLs at runtime anyway (see wxApp::GetComCtl32Version()) unless
17 // the user really doesn't want it and had defined it to a (presumably lower)
20 // just for the reference, here is the table showing what the different value
21 // of _WIN32_IE correspond to:
23 // 0x0200 for comctl32.dll 4.00 shipped with Win95/NT 4.0
26 // 0x0401 4.72 IE 4.01 and Win98
28 // 0x0500 5.81 Win2k/ME
32 // use maximal set of features by default, we check for them during
34 #define _WIN32_IE 0x0600
35 #endif // !defined(_WIN32_IE)
39 // define things which might be missing from our commctrl.h
40 #include "wx/msw/missing.h"
42 // Set Unicode format for a common control
43 inline void wxSetCCUnicodeFormat(HWND
WXUNUSED_IN_WINCE(hwnd
))
46 ::SendMessage(hwnd
, CCM_SETUNICODEFORMAT
, wxUSE_UNICODE
, 0);
48 // here it should be already in Unicode anyhow
49 #endif // __WXWINCE__/!__WXWINCE__
53 // Return the default font for the common controls
55 // this is implemented in msw/settings.cpp
57 extern wxFont
wxGetCCDefaultFont();
60 #endif // _WX_MSW_WRAPCCTL_H_