]> git.saurik.com Git - wxWidgets.git/commitdiff
Must have event.Skip() in OnSize for wxUniv
authorJulian Smart <julian@anthemion.co.uk>
Tue, 13 Jan 2004 13:32:07 +0000 (13:32 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 13 Jan 2004 13:32:07 +0000 (13:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/samples/ogl/ogledit/ogledit.cpp
contrib/samples/ogl/studio/mainfrm.cpp

index 44226b4ac0ba92540965fa7e201c81b87981d654..b69f7dece33ea47d8b4847b2c4782c316c106cb5 100644 (file)
@@ -154,7 +154,7 @@ MyFrame::MyFrame(wxDocManager *manager, wxFrame *frame, const wxString& title,
   editMenu = NULL;
 }
 
-void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event))
+void MyFrame::OnSize(wxSizeEvent& event)
 {
   if (canvas && palette)
   {
@@ -172,6 +172,7 @@ void MyFrame::OnSize(wxSizeEvent& WXUNUSED(event))
     palette->SetSize(paletteX, paletteY, paletteW, paletteH);
     canvas->SetSize(canvasX, canvasY, canvasW, canvasH);
   }
+  event.Skip();
 }
 
 void MyFrame::OnCloseWindow(wxCloseEvent& event)
index 4000fc7e02bbcb594f291977c68bd18fff33ddce..3f4ab32ae551968e5ed5f2e378de5c9704f5b676 100644 (file)
@@ -141,10 +141,11 @@ void csFrame::OnCloseWindow(wxCloseEvent& event)
     wxDocMDIParentFrame::OnCloseWindow(event);
 }
 
-void csFrame::OnSize(wxSizeEvent& WXUNUSED(event))
+void csFrame::OnSize(wxSizeEvent& event)
 {
     wxLayoutAlgorithm layout;
     layout.LayoutMDIFrame(this);
+    event.Skip();
 }
 
 // Make sure the correct toolbars are showing for the active view