From 7a7d2a14fda0f681bd56d7ebd54bd9e4aafdb825 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 31 Jul 2005 19:00:54 +0000 Subject: [PATCH] don't call SetSize when creating the 2nd toolbar, this just results in unnecessary flicker git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/toolbar/toolbar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/toolbar/toolbar.cpp b/samples/toolbar/toolbar.cpp index 062d2f7ec8..a115521897 100644 --- a/samples/toolbar/toolbar.cpp +++ b/samples/toolbar/toolbar.cpp @@ -531,8 +531,7 @@ void MyFrame::LayoutChildren() int offset; if ( m_tbar ) { - m_tbar->SetSize(wxDefaultCoord, size.y); - m_tbar->Move(0, 0); + m_tbar->SetSize(0, 0, wxDefaultCoord, size.y); offset = m_tbar->GetSize().x; } -- 2.45.2