X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04cd30dea218e6a604521d55e3057b5ca9d3e9d2..a71b82dda9493f993309194e39dfd70e8fe2fe54:/src/msw/treectrl.cpp diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index 438e0129a8..a579355d50 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -601,14 +601,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;