X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1408104d04fdea106c8ec288866c4143078ae71b..ec6e0a192c1abd0c7880e7ab11cd63de9706aef8:/include/wx/os2/window.h diff --git a/include/wx/os2/window.h b/include/wx/os2/window.h index 457339052a..f4b1798468 100644 --- a/include/wx/os2/window.h +++ b/include/wx/os2/window.h @@ -146,6 +146,7 @@ public: // same as DoSetSize() for the client size virtual void DoSetClientSize(int width, int height); virtual bool DoPopupMenu( wxMenu *menu, int x, int y ); + virtual WXWidget GetHandle() const; // --------------------------------------------------------------------------- // wxWindowBase virtual implementations that need to be overriden @@ -195,7 +196,7 @@ public: // title; for items, this is the label or button text. inline virtual wxString GetLabel() const { return GetTitle(); } - +#if wxUSE_CARET && WXWIN_COMPATIBILITY // Caret manipulation virtual void CreateCaret(int w, int h); virtual void CreateCaret(const wxBitmap *bitmap); @@ -203,7 +204,7 @@ public: virtual void ShowCaret(bool show); virtual void SetCaretPos(int x, int y); virtual void GetCaretPos(int *x, int *y) const; - +#endif // Handle a control command virtual void OnCommand(wxWindow& win, wxCommandEvent& event); @@ -216,6 +217,7 @@ public: // on a listbox) virtual void OnDefaultAction(wxControl *initiatingItem); + // EventHandlers void OnEraseBackground(wxEraseEvent& event); void OnChar(wxKeyEvent& event); void OnKeyDown(wxKeyEvent& event); @@ -267,10 +269,26 @@ protected: public: int m_returnCode; + bool m_isBeingDeleted; + bool m_isShown; + bool m_winCaptured; + bool m_mouseInWindow; + bool m_backgroundTransparent; + // handles + WXHWND m_hWnd; + WXHMENU m_hMenu; // Menu, if any + + // the size of one page for scrolling + int m_xThumbSize; + int m_yThumbSize; + long m_lDlgCode; DECLARE_EVENT_TABLE() private: - void Init(); + void Init(); + void PMDetachWindowMenu(); + WXHWND GetHwnd() const { return m_hWnd; } + void SetHwnd(WXHWND hWnd) { m_hWnd = hWnd; } }; ////////////////////////////////////////////////////////////////////////