]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/wrapcctl.h
check for self-assignment in operator=
[wxWidgets.git] / include / wx / msw / wrapcctl.h
... / ...
CommitLineData
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$
8// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_MSW_WRAPCCTL_H_
13#define _WX_MSW_WRAPCCTL_H_
14
15#include "wx/msw/wrapwin.h"
16
17#include <commctrl.h>
18
19// define things which might be missing from our commctrl.h
20#include "wx/msw/missing.h"
21
22// Set Unicode format for a common control
23inline void wxSetCCUnicodeFormat(HWND WXUNUSED_IN_WINCE(hwnd))
24{
25#ifndef __WXWINCE__
26 ::SendMessage(hwnd, CCM_SETUNICODEFORMAT, wxUSE_UNICODE, 0);
27#else // !__WXWINCE__
28 // here it should be already in Unicode anyhow
29#endif // __WXWINCE__/!__WXWINCE__
30}
31
32#if wxUSE_GUI
33// Return the default font for the common controls
34//
35// this is implemented in msw/settings.cpp
36class wxFont;
37extern wxFont wxGetCCDefaultFont();
38
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
41struct wxHDITEM : public HDITEM
42{
43 wxHDITEM()
44 {
45 ::ZeroMemory(this, sizeof(*this));
46 }
47};
48
49#endif // wxUSE_GUI
50
51#endif // _WX_MSW_WRAPCCTL_H_