projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't release the DC which we don't own in wxUSE_UXTHEME case
[wxWidgets.git]
/
src
/
generic
/
propdlg.cpp
diff --git
a/src/generic/propdlg.cpp
b/src/generic/propdlg.cpp
index 5b1fa5d1d5ca7e512b73dd194fcaad197212cfba..d463f21ead355915583f3fba3bd680acedf5d25a 100644
(file)
--- a/
src/generic/propdlg.cpp
+++ b/
src/generic/propdlg.cpp
@@
-40,6
+40,9
@@
#if wxUSE_LISTBOOK
#include "wx/listbook.h"
#endif
#if wxUSE_LISTBOOK
#include "wx/listbook.h"
#endif
+#if wxUSE_TREEBOOK
+#include "wx/treebook.h"
+#endif
#include "wx/generic/propdlg.h"
#include "wx/sysopt.h"
#include "wx/generic/propdlg.h"
#include "wx/sysopt.h"
@@
-135,12
+138,7
@@
void wxPropertySheetDialog::CreateButtons(int flags)
// Creates the book control
wxBookCtrlBase* wxPropertySheetDialog::CreateBookCtrl()
{
// Creates the book control
wxBookCtrlBase* wxPropertySheetDialog::CreateBookCtrl()
{
- int style = wxCLIP_CHILDREN;
-#if defined(__POCKETPC__) && wxUSE_NOTEBOOK
- style |= wxBK_BOTTOM|wxNB_FLAT;
-#else
- style |= wxBK_DEFAULT;
-#endif
+ int style = wxCLIP_CHILDREN | wxBK_DEFAULT;
wxBookCtrlBase* bookCtrl = NULL;
wxBookCtrlBase* bookCtrl = NULL;
@@
-164,6
+162,10
@@
wxBookCtrlBase* wxPropertySheetDialog::CreateBookCtrl()
#if wxUSE_LISTBOOK
if (GetSheetStyle() & wxPROPSHEET_LISTBOOK)
bookCtrl = new wxListbook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style );
#if wxUSE_LISTBOOK
if (GetSheetStyle() & wxPROPSHEET_LISTBOOK)
bookCtrl = new wxListbook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style );
+#endif
+#if wxUSE_TREEBOOK
+ if (GetSheetStyle() & wxPROPSHEET_TREEBOOK)
+ bookCtrl = new wxTreebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style );
#endif
if (!bookCtrl)
bookCtrl = new wxBookCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style );
#endif
if (!bookCtrl)
bookCtrl = new wxBookCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style );