+ // This is used by CreateKeyEvent() and also for wxEVT_CHAR[_HOOK] event
+ // creation. Notice that this method doesn't initialize wxKeyEvent
+ // m_keyCode and m_uniChar fields.
+ void InitAnyKeyEvent(wxKeyEvent& event,
+ WXWPARAM wParam,
+ WXLPARAM lParam) const;
+
+ // Helper functions used by HandleKeyXXX() methods and some derived
+ // classes, wParam and lParam have the same meaning as in WM_KEY{DOWN,UP}.
+ //
+ // NB: evType here must be wxEVT_KEY_{DOWN,UP} as wParam here contains the
+ // virtual key code, not character!
+ wxKeyEvent CreateKeyEvent(wxEventType evType,
+ WXWPARAM wParam,
+ WXLPARAM lParam = 0) const;
+
+ // Another helper for creating wxKeyEvent for wxEVT_CHAR and related types.
+ //
+ // The wParam and lParam here must come from WM_CHAR event parameters, i.e.
+ // wParam must be a character and not a virtual code.
+ wxKeyEvent CreateCharEvent(wxEventType evType,
+ WXWPARAM wParam,
+ WXLPARAM lParam) const;
+
+
+ // default OnEraseBackground() implementation, return true if we did erase
+ // the background, false otherwise (i.e. the system should erase it)
+ bool DoEraseBackground(WXHDC hDC);
+
+ // generate WM_CHANGEUISTATE if it's needed for the OS we're running under
+ //
+ // action should be one of the UIS_XXX constants
+ // state should be one or more of the UISF_XXX constants
+ // if action == UIS_INITIALIZE then it doesn't seem to matter what we use
+ // for state as the system will decide for us what needs to be set
+ void MSWUpdateUIState(int action, int state = 0);
+
+ // translate wxWidgets coords into Windows ones suitable to be passed to
+ // ::CreateWindow(), called from MSWCreate()
+ virtual void MSWGetCreateWindowCoords(const wxPoint& pos,
+ const wxSize& size,
+ int& x, int& y,
+ int& w, int& h) const;
+
+ bool MSWEnableHWND(WXHWND hWnd, bool enable);