]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/aui/tabmdi.h
Merge "selected" and "active" child in wxAuiMDIParentFrame.
[wxWidgets.git] / include / wx / aui / tabmdi.h
index f24a2d22ce327aad496392bd03ca1a30eb1921fe..cf9005bfc68401f847eb4f07cb8e7f21d2f86973 100644 (file)
@@ -85,7 +85,6 @@ public:
 
 protected:
     wxAuiMDIClientWindow*   m_pClientWindow;
-    wxAuiMDIChildFrame*     m_pActiveChild;
     wxEvent*                m_pLastEvt;
 
 #if wxUSE_MENUS
@@ -250,6 +249,11 @@ public:
                               long style = wxVSCROLL | wxHSCROLL);
 
     virtual int SetSelection(size_t page);
+    virtual wxAuiMDIChildFrame* GetActiveChild();
+    virtual void SetActiveChild(wxAuiMDIChildFrame* pChildFrame)
+    {
+        SetSelection(GetPageIndex(pChildFrame));
+    }
 
 protected: