]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/wrapcctl.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / msw / wrapcctl.h
CommitLineData
0d236fd0
VZ
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
77ffb593 7// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
65571936 8// Licence: wxWindows licence
0d236fd0
VZ
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MSW_WRAPCCTL_H_
12#define _WX_MSW_WRAPCCTL_H_
13
57bd4c60
WS
14#include "wx/msw/wrapwin.h"
15
2cef71bc 16#include <commctrl.h>
0d236fd0
VZ
17
18// define things which might be missing from our commctrl.h
19#include "wx/msw/missing.h"
20
9a63feff 21// Set Unicode format for a common control
0c0d1521 22inline void wxSetCCUnicodeFormat(HWND WXUNUSED_IN_WINCE(hwnd))
9a63feff 23{
8155488b 24#ifndef __WXWINCE__
553c5bcc 25 ::SendMessage(hwnd, CCM_SETUNICODEFORMAT, wxUSE_UNICODE, 0);
f153c2b6
VZ
26#else // !__WXWINCE__
27 // here it should be already in Unicode anyhow
f153c2b6 28#endif // __WXWINCE__/!__WXWINCE__
9a63feff
VZ
29}
30
cceed040 31#if wxUSE_GUI
553c5bcc
VZ
32// Return the default font for the common controls
33//
34// this is implemented in msw/settings.cpp
9eb5cd3b 35class wxFont;
553c5bcc 36extern wxFont wxGetCCDefaultFont();
56873923
VZ
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
40struct wxHDITEM : public HDITEM
41{
42 wxHDITEM()
43 {
44 ::ZeroMemory(this, sizeof(*this));
45 }
46};
47
48#endif // wxUSE_GUI
553c5bcc 49
0d236fd0 50#endif // _WX_MSW_WRAPCCTL_H_