]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/frame.h
corrections to directory management for Mac OS X
[wxWidgets.git] / include / wx / os2 / frame.h
index 468341d98eddc01f8b423106c7ccd81efbd06043..dd1851cbfb3e0bbc2a3d52d04af39ca2a77b6f1c 100644 (file)
@@ -66,6 +66,7 @@ public:
 
     // override some more virtuals
     virtual bool Show(bool bShow = TRUE);
+    virtual void RemoveChild(wxWindowBase* pChild);
 
     // event handlers
     void OnActivate(wxActivateEvent& rEvent);
@@ -140,6 +141,14 @@ public:
     void   SetToolTipCtrl(WXHWND hHwndTT) { m_hWndToolTip = hHwndTT; }
 #endif // tooltips
 
+    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);
+
 protected:
     // common part of all ctors
     void         Init(void);
@@ -205,8 +214,11 @@ private:
 #endif // tooltips
 
     //
-    // Handles to child windows of the Frame that we don't have child objects for
+    // Handles to child windows of the Frame, and the frame itself,
+    // that we don't have child objects for (m_hWnd in wxWindow is the
+    // handle of the Frame's client window!
     //
+    WXHWND                          m_hFrame;
     WXHWND                          m_hTitleBar;
     WXHWND                          m_hHScroll;
     WXHWND                          m_hVScroll;