]>
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 #include "wx/msw/wrapwin.h"
19 // define things which might be missing from our commctrl.h
20 #include "wx/msw/missing.h"
22 // Set Unicode format for a common control
23 inline void wxSetCCUnicodeFormat(HWND
WXUNUSED_IN_WINCE(hwnd
))
26 ::SendMessage(hwnd
, CCM_SETUNICODEFORMAT
, wxUSE_UNICODE
, 0);
28 // here it should be already in Unicode anyhow
29 #endif // __WXWINCE__/!__WXWINCE__
33 // Return the default font for the common controls
35 // this is implemented in msw/settings.cpp
37 extern wxFont
wxGetCCDefaultFont();
39 // this is just a wrapper for HDITEM which we can't use in the public header
40 // because we don't want to include commctrl.h (and hence windows.h) from there
41 struct wxHDITEM
: public HDITEM
45 ::ZeroMemory(this, sizeof(*this));
51 #endif // _WX_MSW_WRAPCCTL_H_