]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/msw/wrapcctl.h | |
3 | // Purpose: Wrapper for the standard <commctrl.h> header | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 03.08.2003 | |
7 | // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org> | |
8 | // Licence: wxWindows licence | |
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_MSW_WRAPCCTL_H_ | |
12 | #define _WX_MSW_WRAPCCTL_H_ | |
13 | ||
14 | #include "wx/msw/wrapwin.h" | |
15 | ||
16 | #include <commctrl.h> | |
17 | ||
18 | // define things which might be missing from our commctrl.h | |
19 | #include "wx/msw/missing.h" | |
20 | ||
21 | // Set Unicode format for a common control | |
22 | inline void wxSetCCUnicodeFormat(HWND WXUNUSED_IN_WINCE(hwnd)) | |
23 | { | |
24 | #ifndef __WXWINCE__ | |
25 | ::SendMessage(hwnd, CCM_SETUNICODEFORMAT, wxUSE_UNICODE, 0); | |
26 | #else // !__WXWINCE__ | |
27 | // here it should be already in Unicode anyhow | |
28 | #endif // __WXWINCE__/!__WXWINCE__ | |
29 | } | |
30 | ||
31 | #if wxUSE_GUI | |
32 | // Return the default font for the common controls | |
33 | // | |
34 | // this is implemented in msw/settings.cpp | |
35 | class wxFont; | |
36 | extern wxFont wxGetCCDefaultFont(); | |
37 | ||
38 | // this is just a wrapper for HDITEM which we can't use in the public header | |
39 | // because we don't want to include commctrl.h (and hence windows.h) from there | |
40 | struct wxHDITEM : public HDITEM | |
41 | { | |
42 | wxHDITEM() | |
43 | { | |
44 | ::ZeroMemory(this, sizeof(*this)); | |
45 | } | |
46 | }; | |
47 | ||
48 | #endif // wxUSE_GUI | |
49 | ||
50 | #endif // _WX_MSW_WRAPCCTL_H_ |