]> git.saurik.com Git - wxWidgets.git/commitdiff
why was this class made a wxControlContainer (rev. 1.7), this doesn't seem to make...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Mar 2007 21:17:19 +0000 (21:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Mar 2007 21:17:19 +0000 (21:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/treebook.h
src/generic/treebkg.cpp

index c05e56e1aa35f34b353c150ab69d6a8786d2a6ee..d2201317dc00c96087c71c66ae5b1ec08ef866bd 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "wx/bookctrl.h"
 #include "wx/treectrl.h"        // for wxArrayTreeItemIds
-#include "wx/containr.h"
 
 typedef wxWindow wxTreebookPage;
 
@@ -227,7 +226,6 @@ private:
 
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxTreebook)
-    WX_DECLARE_CONTROL_CONTAINER();
 };
 
 
index 3d88255a0f74f6e2d9186b11843ae44a50dfb853..25de92bea60d579238116c4641d904474061f694 100644 (file)
@@ -59,24 +59,18 @@ BEGIN_EVENT_TABLE(wxTreebook, wxBookCtrlBase)
     EVT_TREE_SEL_CHANGED   (wxID_ANY, wxTreebook::OnTreeSelectionChange)
     EVT_TREE_ITEM_EXPANDED (wxID_ANY, wxTreebook::OnTreeNodeExpandedCollapsed)
     EVT_TREE_ITEM_COLLAPSED(wxID_ANY, wxTreebook::OnTreeNodeExpandedCollapsed)
-
-    WX_EVENT_TABLE_CONTROL_CONTAINER(wxTreebook)
 END_EVENT_TABLE()
 
 // ============================================================================
 // wxTreebook implementation
 // ============================================================================
 
-WX_DELEGATE_TO_CONTROL_CONTAINER(wxTreebook, wxControl)
-
 // ----------------------------------------------------------------------------
 // wxTreebook creation
 // ----------------------------------------------------------------------------
 
 void wxTreebook::Init()
 {
-    m_container.SetContainerWindow(this);
-
     m_selection =
     m_actualSelection = wxNOT_FOUND;
 }