]> git.saurik.com Git - wxWidgets.git/blobdiff - src/stubs/treectrl.cpp
Add detachmenu, insert menu, replace menu.
[wxWidgets.git] / src / stubs / treectrl.cpp
index 0b405a7106296bfdaa960dfe8510148a261739c7..137a885dbfa7e32c9096f78376146fda7cffaf68 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        treectrl.cpp
-// Purpose:     wxTreeCtrl
+// Purpose:     wxTreeCtrl. See also Robert's generic wxTreeCtrl.
 // Author:      AUTHOR
 // Modified by:
 // Created:     ??/??/98
@@ -13,7 +13,8 @@
 #pragma implementation "treectrl.h"
 #endif
 
-#include "wx/treectrl.h"
+#include "wx/stubs/textctrl.h"
+#include "wx/stubs/treectrl.h"
 
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxTreeCtrl, wxControl)
@@ -251,7 +252,7 @@ bool wxTreeCtrl::SetItemData(long item, long data)
     return SetItem(info);
 }
 
-bool wxTreeCtrl::GetItemRect(long item, wxRectangle& rect, bool textOnly) const
+bool wxTreeCtrl::GetItemRect(long item, wxRect& rect, bool textOnly) const
 {
     // TODO
     return FALSE;
@@ -281,11 +282,9 @@ bool wxTreeCtrl::ExpandItem(long item, int action)
       break;
 
     case wxTREE_EXPAND_COLLAPSE_RESET:
-      mswAction = TVE_COLLAPSERESET;
       break;
 
     case wxTREE_EXPAND_TOGGLE:
-      mswAction = TVE_TOGGLE;
       break;
 
     default: