]>
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
7 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MSW_WRAPCCTL_H_
12 #define _WX_MSW_WRAPCCTL_H_
14 #include "wx/msw/wrapwin.h"
18 // define things which might be missing from our commctrl.h
19 #include "wx/msw/missing.h"
21 // Set Unicode format for a common control
22 inline void wxSetCCUnicodeFormat(HWND
WXUNUSED_IN_WINCE(hwnd
))
25 ::SendMessage(hwnd
, CCM_SETUNICODEFORMAT
, wxUSE_UNICODE
, 0);
27 // here it should be already in Unicode anyhow
28 #endif // __WXWINCE__/!__WXWINCE__
32 // Return the default font for the common controls
34 // this is implemented in msw/settings.cpp
36 extern wxFont
wxGetCCDefaultFont();
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
44 ::ZeroMemory(this, sizeof(*this));
50 #endif // _WX_MSW_WRAPCCTL_H_