X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de44a9f06d5c9f925de9ae98e426991ed279ceef..93ccaed86983970c4a2aa5af34593781e5b8964f:/include/wx/os2/window.h diff --git a/include/wx/os2/window.h b/include/wx/os2/window.h index 12d2e8d66b..fe491594e3 100644 --- a/include/wx/os2/window.h +++ b/include/wx/os2/window.h @@ -224,6 +224,11 @@ public: void OnPaint(wxPaintEvent& event); void OnIdle(wxIdleEvent& event); + // Accessors + + WXHWND GetHWND() const { return m_hWnd; } + void SetHWND(WXHWND hWnd) { m_hWnd = hWnd; } + virtual WXWidget GetHandle() const { return GetHWND(); } public: // --------------------------------------------------------------------------- @@ -238,14 +243,25 @@ public: // a toolbar that it manages itself). virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags); + // Windows subclassing + void SubclassWin(WXHWND hWnd); + void UnsubclassWin(); + + WXFARPROC OS2GetOldWndProc() const { return m_oldWndProc; } + void OS2SetOldWndProc(WXFARPROC proc) { m_oldWndProc = proc; } + + wxWindow *FindItem(long id) const; + wxWindow *FindItemByHWND(WXHWND hWnd, bool controlOnly = FALSE) const; + + // Determine whether 3D effects are wanted + WXDWORD Determine3DEffects(WXDWORD defaultBorderStyle, bool *want3D) const; + + // PM only: TRUE if this control is part of the main control + virtual bool ContainsHWND(WXHWND WXUNUSED(hWnd)) const { return FALSE; }; + // Executes the default message virtual long Default(); -/* TODO: you may need something like this - // Determine whether 3D effects are wanted - virtual WXDWORD Determine3DEffects(WXDWORD defaultBorderStyle, bool *want3D); -*/ - // Constraint implementation void UnsetConstraints(wxLayoutConstraints *c); // Back-pointer to other windows we're involved with, so if we delete @@ -267,6 +283,7 @@ protected: wxButton * m_defaultItem; public: + WXFARPROC m_oldWndProc; int m_returnCode; bool m_isBeingDeleted; bool m_isShown; @@ -286,8 +303,6 @@ DECLARE_EVENT_TABLE() private: void Init(); void PMDetachWindowMenu(); - WXHWND GetHwnd() const { return m_hWnd; } - void SetHwnd(WXHWND hWnd) { m_hWnd = hWnd; } }; ////////////////////////////////////////////////////////////////////////