]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/wrapcctl.h
Implement deep copy of wxBitmapRefData
[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
7// RCS-ID: $Id$
77ffb593 8// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
65571936 9// Licence: wxWindows licence
0d236fd0
VZ
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_MSW_WRAPCCTL_H_
13#define _WX_MSW_WRAPCCTL_H_
14
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)
18// value
19//
20// just for the reference, here is the table showing what the different value
21// of _WIN32_IE correspond to:
22//
23// 0x0200 for comctl32.dll 4.00 shipped with Win95/NT 4.0
24// 0x0300 4.70 IE 3.x
25// 0x0400 4.71 IE 4.0
26// 0x0401 4.72 IE 4.01 and Win98
27// 0x0500 5.80 IE 5.x
28// 0x0500 5.81 Win2k/ME
29// 0x0600 6.00 WinXP
30
31#ifndef _WIN32_IE
32 // use maximal set of features by default, we check for them during
33 // run-time anyhow
34 #define _WIN32_IE 0x0600
35#endif // !defined(_WIN32_IE)
36
57bd4c60
WS
37#include "wx/msw/wrapwin.h"
38
2cef71bc 39#include <commctrl.h>
0d236fd0
VZ
40
41// define things which might be missing from our commctrl.h
42#include "wx/msw/missing.h"
43
9a63feff 44// Set Unicode format for a common control
0c0d1521 45inline void wxSetCCUnicodeFormat(HWND WXUNUSED_IN_WINCE(hwnd))
9a63feff 46{
8155488b 47#ifndef __WXWINCE__
553c5bcc 48 ::SendMessage(hwnd, CCM_SETUNICODEFORMAT, wxUSE_UNICODE, 0);
f153c2b6
VZ
49#else // !__WXWINCE__
50 // here it should be already in Unicode anyhow
f153c2b6 51#endif // __WXWINCE__/!__WXWINCE__
9a63feff
VZ
52}
53
cceed040 54#if wxUSE_GUI
553c5bcc
VZ
55// Return the default font for the common controls
56//
57// this is implemented in msw/settings.cpp
9eb5cd3b 58class wxFont;
553c5bcc 59extern wxFont wxGetCCDefaultFont();
cceed040 60#endif
553c5bcc 61
0d236fd0 62#endif // _WX_MSW_WRAPCCTL_H_