]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/treebook.h
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / include / wx / treebook.h
index a6bd61d2d1c4b52918883dde48a5834f174ea5dd..784a9f1dd363b917a1441b9704c04bfaf04dbe40 100644 (file)
@@ -17,6 +17,7 @@
 #if wxUSE_TREEBOOK
 
 #include "wx/bookctrl.h"
+#include "wx/containr.h"
 #include "wx/treectrl.h"        // for wxArrayTreeItemIds
 
 typedef wxWindow wxTreebookPage;
@@ -27,7 +28,7 @@ class WXDLLIMPEXP_FWD_CORE wxTreeEvent;
 // wxTreebook
 // ----------------------------------------------------------------------------
 
-class WXDLLIMPEXP_CORE wxTreebook : public wxBookCtrlBase
+class WXDLLIMPEXP_CORE wxTreebook : public wxNavigationEnabled<wxBookCtrlBase>
 {
 public:
     // Constructors and such