| 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 |
| 23 | inline 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 |
| 36 | class wxFont; |
| 37 | extern wxFont wxGetCCDefaultFont(); |
| 38 | #endif |
| 39 | |
| 40 | #endif // _WX_MSW_WRAPCCTL_H_ |