]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/window.h
No real changes, just change type of MSWGetBgBrush() argument.
[wxWidgets.git] / include / wx / msw / window.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/window.h
3 // Purpose: wxWindowMSW class
4 // Author: Julian Smart
5 // Modified by: Vadim Zeitlin on 13.05.99: complete refont of message handling,
6 // elimination of Default(), ...
7 // Created: 01/02/97
8 // RCS-ID: $Id$
9 // Copyright: (c) Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_WINDOW_H_
14 #define _WX_WINDOW_H_
15
16 // if this is set to 1, we use deferred window sizing to reduce flicker when
17 // resizing complicated window hierarchies, but this can in theory result in
18 // different behaviour than the old code so we keep the possibility to use it
19 // by setting this to 0 (in the future this should be removed completely)
20 #ifdef __WXWINCE__
21 #define wxUSE_DEFERRED_SIZING 0
22 #else
23 #define wxUSE_DEFERRED_SIZING 1
24 #endif
25
26 // ---------------------------------------------------------------------------
27 // wxWindow declaration for MSW
28 // ---------------------------------------------------------------------------
29
30 class WXDLLIMPEXP_CORE wxWindowMSW : public wxWindowBase
31 {
32 friend class wxSpinCtrl;
33 friend class wxSlider;
34 friend class wxRadioBox;
35 #if defined __VISUALC__ && __VISUALC__ <= 1200
36 friend class wxWindowMSW;
37 #endif
38 public:
39 wxWindowMSW() { Init(); }
40
41 wxWindowMSW(wxWindow *parent,
42 wxWindowID id,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxDefaultSize,
45 long style = 0,
46 const wxString& name = wxPanelNameStr)
47 {
48 Init();
49 Create(parent, id, pos, size, style, name);
50 }
51
52 virtual ~wxWindowMSW();
53
54 bool Create(wxWindow *parent,
55 wxWindowID id,
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& size = wxDefaultSize,
58 long style = 0,
59 const wxString& name = wxPanelNameStr);
60
61 // implement base class pure virtuals
62 virtual void SetLabel(const wxString& label);
63 virtual wxString GetLabel() const;
64
65 virtual void Raise();
66 virtual void Lower();
67
68 virtual bool Show(bool show = true);
69 virtual bool ShowWithEffect(wxShowEffect effect,
70 unsigned timeout = 0)
71 {
72 return MSWShowWithEffect(true, effect, timeout);
73 }
74 virtual bool HideWithEffect(wxShowEffect effect,
75 unsigned timeout = 0)
76 {
77 return MSWShowWithEffect(false, effect, timeout);
78 }
79
80 virtual void SetFocus();
81 virtual void SetFocusFromKbd();
82
83 virtual bool Reparent(wxWindowBase *newParent);
84
85 virtual void WarpPointer(int x, int y);
86
87 virtual void Refresh( bool eraseBackground = true,
88 const wxRect *rect = (const wxRect *) NULL );
89 virtual void Update();
90
91 virtual void SetWindowStyleFlag(long style);
92 virtual void SetExtraStyle(long exStyle);
93 virtual bool SetCursor( const wxCursor &cursor );
94 virtual bool SetFont( const wxFont &font );
95
96 virtual int GetCharHeight() const;
97 virtual int GetCharWidth() const;
98
99 virtual void SetScrollbar( int orient, int pos, int thumbVisible,
100 int range, bool refresh = true );
101 virtual void SetScrollPos( int orient, int pos, bool refresh = true );
102 virtual int GetScrollPos( int orient ) const;
103 virtual int GetScrollThumb( int orient ) const;
104 virtual int GetScrollRange( int orient ) const;
105 virtual void ScrollWindow( int dx, int dy,
106 const wxRect* rect = NULL );
107
108 virtual bool ScrollLines(int lines);
109 virtual bool ScrollPages(int pages);
110
111 virtual void SetLayoutDirection(wxLayoutDirection dir);
112 virtual wxLayoutDirection GetLayoutDirection() const;
113 virtual wxCoord AdjustForLayoutDirection(wxCoord x,
114 wxCoord width,
115 wxCoord widthTotal) const;
116
117 #if wxUSE_DRAG_AND_DROP
118 virtual void SetDropTarget( wxDropTarget *dropTarget );
119 #endif // wxUSE_DRAG_AND_DROP
120
121 // Accept files for dragging
122 virtual void DragAcceptFiles(bool accept);
123
124 #ifndef __WXUNIVERSAL__
125 // Native resource loading (implemented in src/msw/nativdlg.cpp)
126 // FIXME: should they really be all virtual?
127 virtual bool LoadNativeDialog(wxWindow* parent, wxWindowID& id);
128 virtual bool LoadNativeDialog(wxWindow* parent, const wxString& name);
129 wxWindow* GetWindowChild1(wxWindowID id);
130 wxWindow* GetWindowChild(wxWindowID id);
131 #endif // __WXUNIVERSAL__
132
133 #if wxUSE_HOTKEY
134 // install and deinstall a system wide hotkey
135 virtual bool RegisterHotKey(int hotkeyId, int modifiers, int keycode);
136 virtual bool UnregisterHotKey(int hotkeyId);
137 #endif // wxUSE_HOTKEY
138
139 #ifdef __POCKETPC__
140 bool IsContextMenuEnabled() const { return m_contextMenuEnabled; }
141 void EnableContextMenu(bool enable = true) { m_contextMenuEnabled = enable; }
142 #endif
143
144 // window handle stuff
145 // -------------------
146
147 WXHWND GetHWND() const { return m_hWnd; }
148 void SetHWND(WXHWND hWnd) { m_hWnd = hWnd; }
149 virtual WXWidget GetHandle() const { return GetHWND(); }
150
151 void AssociateHandle(WXWidget handle);
152 void DissociateHandle();
153
154 // does this window have deferred position and/or size?
155 bool IsSizeDeferred() const;
156
157 // these functions allow to register a global handler for the given Windows
158 // message: it will be called from MSWWindowProc() of any window which gets
159 // this event if it's not processed before (i.e. unlike a hook procedure it
160 // does not override the normal processing)
161 //
162 // notice that if you want to process a message for a given window only you
163 // should override its MSWWindowProc() instead
164
165 // type of the handler: it is called with the message parameters (except
166 // that the window object is passed instead of window handle) and should
167 // return true if it handled the message or false if it should be passed to
168 // DefWindowProc()
169 typedef bool (*MSWMessageHandler)(wxWindowMSW *win,
170 WXUINT nMsg,
171 WXWPARAM wParam,
172 WXLPARAM lParam);
173
174 // install a handler, shouldn't be called more than one for the same message
175 static bool MSWRegisterMessageHandler(int msg, MSWMessageHandler handler);
176
177 // unregister a previously registered handler
178 static void MSWUnregisterMessageHandler(int msg, MSWMessageHandler handler);
179
180
181 // implementation from now on
182 // ==========================
183
184 // event handlers
185 // --------------
186
187 void OnPaint(wxPaintEvent& event);
188 #ifdef __WXWINCE__
189 void OnInitDialog(wxInitDialogEvent& event);
190 #endif
191
192 public:
193 // Windows subclassing
194 void SubclassWin(WXHWND hWnd);
195 void UnsubclassWin();
196
197 WXFARPROC MSWGetOldWndProc() const { return m_oldWndProc; }
198 void MSWSetOldWndProc(WXFARPROC proc) { m_oldWndProc = proc; }
199
200 // return true if the window is of a standard (i.e. not wxWidgets') class
201 //
202 // to understand why does it work, look at SubclassWin() code and comments
203 bool IsOfStandardClass() const { return m_oldWndProc != NULL; }
204
205 wxWindow *FindItem(long id) const;
206 wxWindow *FindItemByHWND(WXHWND hWnd, bool controlOnly = false) const;
207
208 // MSW only: true if this control is part of the main control
209 virtual bool ContainsHWND(WXHWND WXUNUSED(hWnd)) const { return false; }
210
211 #if wxUSE_TOOLTIPS
212 // MSW only: true if this window or any of its children have a tooltip
213 virtual bool HasToolTips() const { return GetToolTip() != NULL; }
214 #endif // wxUSE_TOOLTIPS
215
216 // translate wxWidgets style flags for this control into the Windows style
217 // and optional extended style for the corresponding native control
218 //
219 // this is the function that should be overridden in the derived classes,
220 // but you will mostly use MSWGetCreateWindowFlags() below
221 virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const ;
222
223 // get the MSW window flags corresponding to wxWidgets ones
224 //
225 // the functions returns the flags (WS_XXX) directly and puts the ext
226 // (WS_EX_XXX) flags into the provided pointer if not NULL
227 WXDWORD MSWGetCreateWindowFlags(WXDWORD *exflags = NULL) const
228 { return MSWGetStyle(GetWindowStyle(), exflags); }
229
230 // update the real underlying window style flags to correspond to the
231 // current wxWindow object style (safe to call even if window isn't fully
232 // created yet)
233 void MSWUpdateStyle(long flagsOld, long exflagsOld);
234
235 // translate wxWidgets coords into Windows ones suitable to be passed to
236 // ::CreateWindow()
237 //
238 // returns true if non default coords are returned, false otherwise
239 bool MSWGetCreateWindowCoords(const wxPoint& pos,
240 const wxSize& size,
241 int& x, int& y,
242 int& w, int& h) const;
243
244 // get the HWND to be used as parent of this window with CreateWindow()
245 virtual WXHWND MSWGetParent() const;
246
247 // get the Win32 window class name used by all wxWindow objects by default
248 static const wxChar *MSWGetRegisteredClassName();
249
250 // creates the window of specified Windows class with given style, extended
251 // style, title and geometry (default values
252 //
253 // returns true if the window has been created, false if creation failed
254 bool MSWCreate(const wxChar *wclass,
255 const wxChar *title = NULL,
256 const wxPoint& pos = wxDefaultPosition,
257 const wxSize& size = wxDefaultSize,
258 WXDWORD style = 0,
259 WXDWORD exendedStyle = 0);
260
261 virtual bool MSWCommand(WXUINT param, WXWORD id);
262
263 #ifndef __WXUNIVERSAL__
264 // Create an appropriate wxWindow from a HWND
265 virtual wxWindow* CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd);
266
267 // Make sure the window style reflects the HWND style (roughly)
268 virtual void AdoptAttributesFromHWND();
269 #endif // __WXUNIVERSAL__
270
271 // Setup background and foreground colours correctly
272 virtual void SetupColours();
273
274 // ------------------------------------------------------------------------
275 // helpers for message handlers: these perform the same function as the
276 // message crackers from <windowsx.h> - they unpack WPARAM and LPARAM into
277 // the correct parameters
278 // ------------------------------------------------------------------------
279
280 void UnpackCommand(WXWPARAM wParam, WXLPARAM lParam,
281 WXWORD *id, WXHWND *hwnd, WXWORD *cmd);
282 void UnpackActivate(WXWPARAM wParam, WXLPARAM lParam,
283 WXWORD *state, WXWORD *minimized, WXHWND *hwnd);
284 void UnpackScroll(WXWPARAM wParam, WXLPARAM lParam,
285 WXWORD *code, WXWORD *pos, WXHWND *hwnd);
286 void UnpackCtlColor(WXWPARAM wParam, WXLPARAM lParam,
287 WXHDC *hdc, WXHWND *hwnd);
288 void UnpackMenuSelect(WXWPARAM wParam, WXLPARAM lParam,
289 WXWORD *item, WXWORD *flags, WXHMENU *hmenu);
290
291 // ------------------------------------------------------------------------
292 // internal handlers for MSW messages: all handlers return a boolean value:
293 // true means that the handler processed the event and false that it didn't
294 // ------------------------------------------------------------------------
295
296 // there are several cases where we have virtual functions for Windows
297 // message processing: this is because these messages often require to be
298 // processed in a different manner in the derived classes. For all other
299 // messages, however, we do *not* have corresponding MSWOnXXX() function
300 // and if the derived class wants to process them, it should override
301 // MSWWindowProc() directly.
302
303 // scroll event (both horizontal and vertical)
304 virtual bool MSWOnScroll(int orientation, WXWORD nSBCode,
305 WXWORD pos, WXHWND control);
306
307 // child control notifications
308 virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
309
310 // owner-drawn controls need to process these messages
311 virtual bool MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *item);
312 virtual bool MSWOnMeasureItem(int id, WXMEASUREITEMSTRUCT *item);
313
314 // the rest are not virtual
315 bool HandleCreate(WXLPCREATESTRUCT cs, bool *mayCreate);
316 bool HandleInitDialog(WXHWND hWndFocus);
317 bool HandleDestroy();
318
319 bool HandlePaint();
320 bool HandlePrintClient(WXHDC hDC);
321 bool HandleEraseBkgnd(WXHDC hDC);
322
323 bool HandleMinimize();
324 bool HandleMaximize();
325 bool HandleSize(int x, int y, WXUINT flag);
326 bool HandleSizing(wxRect& rect);
327 bool HandleGetMinMaxInfo(void *mmInfo);
328 bool HandleEnterSizeMove();
329 bool HandleExitSizeMove();
330
331 bool HandleShow(bool show, int status);
332 bool HandleActivate(int flag, bool minimized, WXHWND activate);
333
334 bool HandleCommand(WXWORD id, WXWORD cmd, WXHWND control);
335
336 bool HandleCtlColor(WXHBRUSH *hBrush, WXHDC hdc, WXHWND hWnd);
337
338 bool HandlePaletteChanged(WXHWND hWndPalChange);
339 bool HandleQueryNewPalette();
340 bool HandleSysColorChange();
341 bool HandleDisplayChange();
342 bool HandleCaptureChanged(WXHWND gainedCapture);
343 virtual bool HandleSettingChange(WXWPARAM wParam, WXLPARAM lParam);
344
345 bool HandleQueryEndSession(long logOff, bool *mayEnd);
346 bool HandleEndSession(bool endSession, long logOff);
347
348 bool HandleSetFocus(WXHWND wnd);
349 bool HandleKillFocus(WXHWND wnd);
350
351 bool HandleDropFiles(WXWPARAM wParam);
352
353 bool HandleMouseEvent(WXUINT msg, int x, int y, WXUINT flags);
354 bool HandleMouseMove(int x, int y, WXUINT flags);
355 bool HandleMouseWheel(WXWPARAM wParam, WXLPARAM lParam);
356
357 bool HandleChar(WXWPARAM wParam, WXLPARAM lParam, bool isASCII = false);
358 bool HandleKeyDown(WXWPARAM wParam, WXLPARAM lParam);
359 bool HandleKeyUp(WXWPARAM wParam, WXLPARAM lParam);
360 #if wxUSE_ACCEL
361 bool HandleHotKey(WXWPARAM wParam, WXLPARAM lParam);
362 #endif
363 #ifdef __WIN32__
364 int HandleMenuChar(int chAccel, WXLPARAM lParam);
365 #endif
366 // Create and process a clipboard event specified by type.
367 bool HandleClipboardEvent( WXUINT nMsg );
368
369 bool HandleQueryDragIcon(WXHICON *hIcon);
370
371 bool HandleSetCursor(WXHWND hWnd, short nHitTest, int mouseMsg);
372
373 bool HandlePower(WXWPARAM wParam, WXLPARAM lParam, bool *vetoed);
374
375
376 // Window procedure
377 virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
378
379 // Calls an appropriate default window procedure
380 virtual WXLRESULT MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
381
382 // message processing helpers
383
384 // return false if the message shouldn't be translated/preprocessed but
385 // dispatched normally
386 virtual bool MSWShouldPreProcessMessage(WXMSG* pMsg);
387
388 // return true if the message was preprocessed and shouldn't be dispatched
389 virtual bool MSWProcessMessage(WXMSG* pMsg);
390
391 // return true if the message was translated and shouldn't be dispatched
392 virtual bool MSWTranslateMessage(WXMSG* pMsg);
393
394 // called when the window is about to be destroyed
395 virtual void MSWDestroyWindow();
396
397
398 // this function should return the brush to paint the children controls
399 // background or 0 if this window doesn't impose any particular background
400 // on its children
401 //
402 // the hDC parameter is the DC background will be drawn on, it can be used
403 // to call SetBrushOrgEx() on it if the returned brush is a bitmap one
404 //
405 // child parameter is never NULL
406 //
407 // the base class version returns a solid brush if we have a non default
408 // background colour or 0 otherwise
409 virtual WXHBRUSH MSWGetBgBrushForChild(WXHDC hDC, wxWindowMSW *child);
410
411 // return the background brush to use for painting the given window by
412 // quering the parent windows via their MSWGetBgBrushForChild() recursively
413 WXHBRUSH MSWGetBgBrush(WXHDC hDC) { return MSWGetBgBrush(hDC, this); }
414 WXHBRUSH MSWGetBgBrush(WXHDC hDC, wxWindowMSW *child);
415
416 // gives the parent the possibility to draw its children background, e.g.
417 // this is used by wxNotebook to do it using DrawThemeBackground()
418 //
419 // return true if background was drawn, false otherwise
420 virtual bool MSWPrintChild(WXHDC WXUNUSED(hDC), wxWindow * WXUNUSED(child))
421 {
422 return false;
423 }
424
425 // some controls (e.g. wxListBox) need to set the return value themselves
426 //
427 // return true to let parent handle it if we don't, false otherwise
428 virtual bool MSWShouldPropagatePrintChild()
429 {
430 return true;
431 }
432
433 // common part of Show/HideWithEffect()
434 bool MSWShowWithEffect(bool show,
435 wxShowEffect effect,
436 unsigned timeout);
437
438 // Responds to colour changes: passes event on to children.
439 void OnSysColourChanged(wxSysColourChangedEvent& event);
440
441 // initialize various fields of wxMouseEvent (common part of MSWOnMouseXXX)
442 void InitMouseEvent(wxMouseEvent& event, int x, int y, WXUINT flags);
443
444 // check if mouse is in the window
445 bool IsMouseInWindow() const;
446
447 // check if a native double-buffering applies for this window
448 virtual bool IsDoubleBuffered() const;
449
450 void SetDoubleBuffered(bool on);
451
452 // synthesize a wxEVT_LEAVE_WINDOW event and set m_mouseInWindow to false
453 void GenerateMouseLeave();
454
455 // virtual function for implementing internal idle
456 // behaviour
457 virtual void OnInternalIdle();
458
459 protected:
460 // this allows you to implement standard control borders without
461 // repeating the code in different classes that are not derived from
462 // wxControl
463 virtual wxBorder GetDefaultBorderForControl() const;
464
465 // choose the default border for this window
466 virtual wxBorder GetDefaultBorder() const;
467
468 // Translate wxBORDER_THEME (and other border styles if necessary to the value
469 // that makes most sense for this Windows environment
470 virtual wxBorder TranslateBorder(wxBorder border) const;
471
472 #if wxUSE_MENUS_NATIVE
473 virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
474 #endif // wxUSE_MENUS_NATIVE
475
476 // the window handle
477 WXHWND m_hWnd;
478
479 // the old window proc (we subclass all windows)
480 WXFARPROC m_oldWndProc;
481
482 // additional (MSW specific) flags
483 bool m_mouseInWindow:1;
484 bool m_lastKeydownProcessed:1;
485
486 // the size of one page for scrolling
487 int m_xThumbSize;
488 int m_yThumbSize;
489
490 // implement the base class pure virtuals
491 virtual void DoGetTextExtent(const wxString& string,
492 int *x, int *y,
493 int *descent = NULL,
494 int *externalLeading = NULL,
495 const wxFont *font = NULL) const;
496 virtual void DoClientToScreen( int *x, int *y ) const;
497 virtual void DoScreenToClient( int *x, int *y ) const;
498 virtual void DoGetPosition( int *x, int *y ) const;
499 virtual void DoGetSize( int *width, int *height ) const;
500 virtual void DoGetClientSize( int *width, int *height ) const;
501 virtual void DoSetSize(int x, int y,
502 int width, int height,
503 int sizeFlags = wxSIZE_AUTO);
504 virtual void DoSetClientSize(int width, int height);
505
506 virtual wxSize DoGetBorderSize() const;
507
508 virtual void DoCaptureMouse();
509 virtual void DoReleaseMouse();
510
511 virtual void DoEnable(bool enable);
512
513 virtual void DoFreeze();
514 virtual void DoThaw();
515
516 // this simply moves/resizes the given HWND which is supposed to be our
517 // sibling (this is useful for controls which are composite at MSW level
518 // and for which DoMoveWindow() is not enough)
519 //
520 // returns true if the window move was deferred, false if it was moved
521 // immediately (no error return)
522 bool DoMoveSibling(WXHWND hwnd, int x, int y, int width, int height);
523
524 // move the window to the specified location and resize it: this is called
525 // from both DoSetSize() and DoSetClientSize() and would usually just call
526 // ::MoveWindow() except for composite controls which will want to arrange
527 // themselves inside the given rectangle
528 virtual void DoMoveWindow(int x, int y, int width, int height);
529
530 #if wxUSE_TOOLTIPS
531 virtual void DoSetToolTip( wxToolTip *tip );
532
533 // process TTN_NEEDTEXT message properly (i.e. fixing the bugs in
534 // comctl32.dll in our code -- see the function body for more info)
535 bool HandleTooltipNotify(WXUINT code,
536 WXLPARAM lParam,
537 const wxString& ttip);
538 #endif // wxUSE_TOOLTIPS
539
540 // the helper functions used by HandleChar/KeyXXX methods
541 wxKeyEvent CreateKeyEvent(wxEventType evType, int id,
542 WXLPARAM lParam = 0, WXWPARAM wParam = 0) const;
543
544
545 // default OnEraseBackground() implementation, return true if we did erase
546 // the background, false otherwise (i.e. the system should erase it)
547 bool DoEraseBackground(WXHDC hDC);
548
549 // generate WM_CHANGEUISTATE if it's needed for the OS we're running under
550 //
551 // action should be one of the UIS_XXX constants
552 // state should be one or more of the UISF_XXX constants
553 // if action == UIS_INITIALIZE then it doesn't seem to matter what we use
554 // for state as the system will decide for us what needs to be set
555 void MSWUpdateUIState(int action, int state = 0);
556
557 private:
558 // common part of all ctors
559 void Init();
560
561 // the (non-virtual) handlers for the events
562 bool HandleMove(int x, int y);
563 bool HandleMoving(wxRect& rect);
564 bool HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags);
565 bool HandleNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
566
567 #if wxUSE_DEFERRED_SIZING
568 protected:
569 // this function is called after the window was resized to its new size
570 virtual void MSWEndDeferWindowPos()
571 {
572 m_pendingPosition = wxDefaultPosition;
573 m_pendingSize = wxDefaultSize;
574 }
575
576 // current defer window position operation handle (may be NULL)
577 WXHANDLE m_hDWP;
578
579 // When deferred positioning is done these hold the pending changes, and
580 // are used for the default values if another size/pos changes is done on
581 // this window before the group of deferred changes is completed.
582 wxPoint m_pendingPosition;
583 wxSize m_pendingSize;
584 #endif // wxUSE_DEFERRED_SIZING
585
586 private:
587 #ifdef __POCKETPC__
588 bool m_contextMenuEnabled;
589 #endif
590
591 DECLARE_DYNAMIC_CLASS(wxWindowMSW)
592 wxDECLARE_NO_COPY_CLASS(wxWindowMSW);
593 DECLARE_EVENT_TABLE()
594 };
595
596 // ----------------------------------------------------------------------------
597 // inline functions
598 // ----------------------------------------------------------------------------
599
600 // ---------------------------------------------------------------------------
601 // global functions
602 // ---------------------------------------------------------------------------
603
604 // kbd code translation
605 WXDLLIMPEXP_CORE int wxCharCodeMSWToWX(int keySym, WXLPARAM lParam = 0);
606 WXDLLIMPEXP_CORE WXWORD wxCharCodeWXToMSW(int id);
607
608 // window creation helper class: before creating a new HWND, instantiate an
609 // object of this class on stack - this allows to process the messages sent to
610 // the window even before CreateWindow() returns
611 class wxWindowCreationHook
612 {
613 public:
614 wxWindowCreationHook(wxWindowMSW *winBeingCreated);
615 ~wxWindowCreationHook();
616 };
617
618 #endif // _WX_WINDOW_H_