]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes some position issues of where to draw heart of the toolbar in the window -...
authorGeorge Tasker <gtasker@allenbrook.com>
Tue, 29 Jan 2002 21:27:42 +0000 (21:27 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Tue, 29 Jan 2002 21:27:42 +0000 (21:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/fl/controlbar.cpp

index 93234730f6736f0ea32765774caeb7a0bdd37f02..c1a3af514bddccba5ea27cb2bc405557500a4ee5 100644 (file)
@@ -1149,8 +1149,13 @@ void wxFrameLayout::PositionPanes()
 void wxFrameLayout::OnSize( wxSizeEvent& event )
 {
     if ( event.GetEventObject() == (wxObject*) mpFrame )
-    
+    {
+        GetUpdatesManager().OnStartChanges();
         RecalcLayout(TRUE);
+        GetUpdatesManager().OnFinishChanges();
+        GetUpdatesManager().UpdateNow();
+    }
+
 }
 
 /*** protected members ***/
@@ -1551,9 +1556,11 @@ void wxFrameLayout::SetPaneBackground( const wxColour& colour )
 
 void wxFrameLayout::RefreshNow( bool recalcLayout )
 {
-    if ( recalcLayout ) RecalcLayout( TRUE );
+    if ( recalcLayout )
+        RecalcLayout( TRUE );
 
-    if ( mpFrame ) mpFrame->Refresh();
+    if ( mpFrame )
+        mpFrame->Refresh();
 }
 
 /*** plugin-related methods ***/