2003-08-03 06:57:51 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/msw/wrapcctl.h
|
|
|
|
// Purpose: Wrapper for the standard <commctrl.h> header
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 03.08.2003
|
|
|
|
// RCS-ID: $Id$
|
2004-05-23 10:56:36 -04:00
|
|
|
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-08-03 06:57:51 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSW_WRAPCCTL_H_
|
|
|
|
#define _WX_MSW_WRAPCCTL_H_
|
|
|
|
|
2006-09-07 15:01:45 -04:00
|
|
|
#include "wx/msw/wrapwin.h"
|
|
|
|
|
2005-04-23 14:59:33 -04:00
|
|
|
#include <commctrl.h>
|
2003-08-03 06:57:51 -04:00
|
|
|
|
|
|
|
// define things which might be missing from our commctrl.h
|
|
|
|
#include "wx/msw/missing.h"
|
|
|
|
|
2004-03-20 07:39:04 -05:00
|
|
|
// Set Unicode format for a common control
|
2005-07-01 09:39:03 -04:00
|
|
|
inline void wxSetCCUnicodeFormat(HWND WXUNUSED_IN_WINCE(hwnd))
|
2004-03-20 07:39:04 -05:00
|
|
|
{
|
2004-03-29 03:12:04 -05:00
|
|
|
#ifndef __WXWINCE__
|
2004-03-31 19:09:48 -05:00
|
|
|
::SendMessage(hwnd, CCM_SETUNICODEFORMAT, wxUSE_UNICODE, 0);
|
2004-04-04 09:01:18 -04:00
|
|
|
#else // !__WXWINCE__
|
|
|
|
// here it should be already in Unicode anyhow
|
|
|
|
#endif // __WXWINCE__/!__WXWINCE__
|
2004-03-20 07:39:04 -05:00
|
|
|
}
|
|
|
|
|
2006-03-12 08:28:55 -05:00
|
|
|
#if wxUSE_GUI
|
2004-03-31 19:09:48 -05:00
|
|
|
// Return the default font for the common controls
|
|
|
|
//
|
|
|
|
// this is implemented in msw/settings.cpp
|
2006-03-12 08:35:59 -05:00
|
|
|
class wxFont;
|
2004-03-31 19:09:48 -05:00
|
|
|
extern wxFont wxGetCCDefaultFont();
|
2008-12-03 16:53:10 -05:00
|
|
|
|
|
|
|
// this is just a wrapper for HDITEM which we can't use in the public header
|
|
|
|
// because we don't want to include commctrl.h (and hence windows.h) from there
|
|
|
|
struct wxHDITEM : public HDITEM
|
|
|
|
{
|
|
|
|
wxHDITEM()
|
|
|
|
{
|
|
|
|
::ZeroMemory(this, sizeof(*this));
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_GUI
|
2004-03-31 19:09:48 -05:00
|
|
|
|
2003-08-03 06:57:51 -04:00
|
|
|
#endif // _WX_MSW_WRAPCCTL_H_
|