ignore the border flags for the toolbar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-11-02 00:42:56 +00:00
parent 08d7397c9a
commit a4aad4def6

View File

@ -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;