From c5c703efea5140e0471cc685c5f3cf43c49d2624 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 15 Jul 2008 21:29:10 +0000 Subject: [PATCH] Fixed wxTreebook tree control border style git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treebkg.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/generic/treebkg.cpp b/src/generic/treebkg.cpp index 3d88255a0f..2a13c32ae3 100644 --- a/src/generic/treebkg.cpp +++ b/src/generic/treebkg.cpp @@ -104,15 +104,18 @@ wxTreebook::Create(wxWindow *parent, style, wxDefaultValidator, name) ) return false; +#ifdef __WXMSW__ + long treeStyle = GetThemedBorderStyle(); +#else + long treeStyle = wxBORDER_SUNKEN; +#endif m_bookctrl = new wxTreeCtrl ( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, -#ifndef __WXMSW__ - wxBORDER_SIMPLE | // On wxMSW this produces a black border which is wrong -#endif + treeStyle| wxTR_DEFAULT_STYLE | wxTR_HIDE_ROOT | wxTR_SINGLE