hiddenwin.h 1.3 KB

123456789101112131415161718192021222324252627282930
  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. // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_MSW_PRIVATE_HIDDENWIN_H_
  10. #define _WX_MSW_PRIVATE_HIDDENWIN_H_
  11. #include "wx/msw/private.h"
  12. /*
  13. Creates a hidden window with supplied window proc registering the class for
  14. it if necessary (i.e. the first time only). Caller is responsible for
  15. destroying the window and unregistering the class (note that this must be
  16. done because wxWidgets may be used as a DLL and so may be loaded/unloaded
  17. multiple times into/from the same process so we can't rely on automatic
  18. Windows class unregistration).
  19. pclassname is a pointer to a caller stored classname, which must initially be
  20. NULL. classname is the desired wndclass classname. If function successfully
  21. registers the class, pclassname will be set to classname.
  22. */
  23. extern "C" WXDLLIMPEXP_BASE HWND
  24. wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc);
  25. #endif // _WX_MSW_PRIVATE_HIDDENWIN_H_