From: Vadim Zeitlin Date: Fri, 2 Nov 2001 00:42:56 +0000 (+0000) Subject: ignore the border flags for the toolbar X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a4aad4def6485646968be3561bfeac66a980608f ignore the border flags for the toolbar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index 470d5e5cfa..6ea1b236f4 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -218,14 +218,17 @@ bool wxToolBar::Create(wxWindow *parent, long style, const wxString& name) { + // toolbars never have border, giving one to them results in broken + // appearance + style &= ~wxBORDER_MASK; + style |= wxBORDER_NONE; + // common initialisation if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) ) return FALSE; // prepare flags DWORD msflags = 0; // WS_VISIBLE | WS_CHILD always included - if (style & wxBORDER) - msflags |= WS_BORDER; if ( style & wxCLIP_SIBLINGS ) msflags |= WS_CLIPSIBLINGS;