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/branches/WX_2_4_BRANCH@20619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-05-13 15:20:50 +00:00
parent 1a24baa1a0
commit 3d3fd07689
2 changed files with 7 additions and 6 deletions

View File

@@ -595,14 +595,15 @@ bool wxTreeCtrl::Create(wxWindow *parent,
{
Init();
if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
style |= wxBORDER_SUNKEN;
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
return FALSE;
DWORD wstyle = WS_VISIBLE | WS_CHILD | WS_TABSTOP |
TVS_SHOWSELALWAYS;
if ( m_windowStyle & wxCLIP_SIBLINGS )
wstyle |= WS_CLIPSIBLINGS;
DWORD exStyle = 0;
DWORD wstyle = MSWGetStyle(m_windowStyle, & exStyle);
wstyle |= WS_TABSTOP | TVS_SHOWSELALWAYS;
if ((m_windowStyle & wxTR_NO_LINES) == 0)
wstyle |= TVS_HASLINES;

View File

@@ -1197,7 +1197,7 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
break;
case wxBORDER_RAISED:
*exstyle |= WS_EX_WINDOWEDGE;
*exstyle |= WS_EX_DLGMODALFRAME;
break;
case wxBORDER_SUNKEN: