Applied patch #420395 (adding wxCLIP_SIBBLINGS capability -- but not by default)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2001-05-16 11:14:37 +00:00
parent 833615dd4d
commit b07664068b
27 changed files with 130 additions and 29 deletions

View File

@@ -527,7 +527,10 @@ bool wxTreeCtrl::Create(wxWindow *parent,
return FALSE;
DWORD wstyle = WS_VISIBLE | WS_CHILD | WS_TABSTOP |
TVS_SHOWSELALWAYS /* | WS_CLIPSIBLINGS */;
TVS_SHOWSELALWAYS;
if ( m_windowStyle & wxCLIP_SIBLINGS )
wstyle |= WS_CLIPSIBLINGS;
if ((m_windowStyle & wxTR_NO_LINES) == 0)
wstyle |= TVS_HASLINES;