Added ability to call wxWindow::OnPaint under Windows (experimental).
Added wxTR_NO_LINES to remove lines from tree control (MSW only). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -519,8 +519,10 @@ bool wxTreeCtrl::Create(wxWindow *parent,
|
||||
return FALSE;
|
||||
|
||||
DWORD wstyle = WS_VISIBLE | WS_CHILD | WS_TABSTOP |
|
||||
TVS_HASLINES | TVS_SHOWSELALWAYS /* | WS_CLIPSIBLINGS */;
|
||||
TVS_SHOWSELALWAYS /* | WS_CLIPSIBLINGS */;
|
||||
|
||||
if ((m_windowStyle & wxTR_NO_LINES) == 0)
|
||||
wstyle |= TVS_HASLINES;
|
||||
if ( m_windowStyle & wxTR_HAS_BUTTONS )
|
||||
wstyle |= TVS_HASBUTTONS;
|
||||
|
||||
|
Reference in New Issue
Block a user