X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60161cfac9dba5a7688e0622784b7bc2fffd859e..6c02c32922ecd6b3272c89669e3fe1304cd9dfac:/include/wx/os2/frame.h?ds=sidebyside diff --git a/include/wx/os2/frame.h b/include/wx/os2/frame.h index 7df92f7e21..38d5f57600 100644 --- a/include/wx/os2/frame.h +++ b/include/wx/os2/frame.h @@ -17,19 +17,19 @@ // #include "wx/os2/wxOs2.h" -class WXDLLEXPORT wxFrame : public wxFrameBase +class WXDLLEXPORT wxFrameOS2 : public wxFrameBase { public: // construction - wxFrame() { Init(); } - wxFrame( wxWindow* pParent - ,wxWindowID vId - ,const wxString& rsTitle - ,const wxPoint& rPos = wxDefaultPosition - ,const wxSize& rSize = wxDefaultSize - ,long lStyle = wxDEFAULT_FRAME_STYLE - ,const wxString& rsName = wxFrameNameStr - ) + wxFrameOS2() { Init(); } + wxFrameOS2( wxWindow* pParent + ,wxWindowID vId + ,const wxString& rsTitle + ,const wxPoint& rPos = wxDefaultPosition + ,const wxSize& rSize = wxDefaultSize + ,long lStyle = wxDEFAULT_FRAME_STYLE + ,const wxString& rsName = wxFrameNameStr + ) { Init(); @@ -45,7 +45,7 @@ public: ,const wxString& rsName = wxFrameNameStr ); - virtual ~wxFrame(); + virtual ~wxFrameOS2(); // implement base class pure virtuals virtual void Maximize(bool bMaximize = TRUE); @@ -140,9 +140,16 @@ public: void SetToolTipCtrl(WXHWND hHwndTT) { m_hWndToolTip = hHwndTT; } #endif // tooltips + // + // Called by wxWindow whenever it gets focus + // + void SetLastFocus(wxWindow* pWin) { m_pWinLastFocused = pWin; } + wxWindow *GetLastFocus(void) const { return m_pWinLastFocused; } + void SetClient(WXHWND c_Hwnd); void SetClient(wxWindow* c_Window); wxWindow *GetClient(); + HWND GetFrame(void) const { return m_hFrame; } friend MRESULT EXPENTRY wxFrameWndProc(HWND hWnd,ULONG ulMsg, MPARAM wParam, MPARAM lParam); friend MRESULT EXPENTRY wxFrameMainWndProc(HWND hWnd,ULONG ulMsg, MPARAM wParam, MPARAM lParam); @@ -235,7 +242,7 @@ private: SWP m_vSwpToolBar; DECLARE_EVENT_TABLE() - DECLARE_DYNAMIC_CLASS(wxFrame) + DECLARE_DYNAMIC_CLASS(wxFrameOS2) }; #endif