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:
@@ -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
|
||||
|
Reference in New Issue
Block a user