]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/private/hiddenwin.h
Disable creation of wxDIB from wxBitmap in non-wxMSW ports.
[wxWidgets.git] / include / wx / msw / private / hiddenwin.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/private/hiddenwin.h
3 // Purpose: Helper for creating a hidden window used by wxMSW internally.
4 // Author: Vadim Zeitlin
5 // Created: 2011-09-16
6 // RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_MSW_PRIVATE_HIDDENWIN_H_
12 #define _WX_MSW_PRIVATE_HIDDENWIN_H_
13
14 #include "wx/msw/private.h"
15
16 /*
17 Creates a hidden window with supplied window proc registering the class for
18 it if necessary (i.e. the first time only). Caller is responsible for
19 destroying the window and unregistering the class (note that this must be
20 done because wxWidgets may be used as a DLL and so may be loaded/unloaded
21 multiple times into/from the same process so we can't rely on automatic
22 Windows class unregistration).
23
24 pclassname is a pointer to a caller stored classname, which must initially be
25 NULL. classname is the desired wndclass classname. If function successfully
26 registers the class, pclassname will be set to classname.
27 */
28 extern "C" WXDLLIMPEXP_BASE HWND
29 wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc);
30
31 #endif // _WX_MSW_PRIVATE_HIDDENWIN_H_