Rationalised style handling in tree control
No longer use WS_EX_WINDOWEDGE since it seems to be obsolete, and has no effect git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -601,14 +601,15 @@ bool wxTreeCtrl::Create(wxWindow *parent,
|
|||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
|
if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
|
||||||
|
style |= wxBORDER_SUNKEN;
|
||||||
|
|
||||||
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
|
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
DWORD wstyle = WS_VISIBLE | WS_CHILD | WS_TABSTOP |
|
DWORD exStyle = 0;
|
||||||
TVS_SHOWSELALWAYS;
|
DWORD wstyle = MSWGetStyle(m_windowStyle, & exStyle);
|
||||||
|
wstyle |= WS_TABSTOP | TVS_SHOWSELALWAYS;
|
||||||
if ( m_windowStyle & wxCLIP_SIBLINGS )
|
|
||||||
wstyle |= WS_CLIPSIBLINGS;
|
|
||||||
|
|
||||||
if ((m_windowStyle & wxTR_NO_LINES) == 0)
|
if ((m_windowStyle & wxTR_NO_LINES) == 0)
|
||||||
wstyle |= TVS_HASLINES;
|
wstyle |= TVS_HASLINES;
|
||||||
|
@@ -1067,7 +1067,7 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case wxBORDER_RAISED:
|
case wxBORDER_RAISED:
|
||||||
*exstyle |= WS_EX_WINDOWEDGE;
|
*exstyle |= WS_EX_DLGMODALFRAME;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case wxBORDER_SUNKEN:
|
case wxBORDER_SUNKEN:
|
||||||
|
Reference in New Issue
Block a user