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
This commit is contained in:
Julian Smart
2008-07-15 21:29:10 +00:00
parent f89a4c2df5
commit c5c703efea

View File

@@ -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