From: Julian Smart Date: Thu, 22 Aug 2002 15:44:34 +0000 (+0000) Subject: OnSize must not be skipped for non-wxX11 platforms X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a9c824e90f9e00df70dcefadd0a89e896a18f9a5 OnSize must not be skipped for non-wxX11 platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/mdi/mdi.cpp b/samples/mdi/mdi.cpp index 06b778e8e4..e5833ef4e8 100644 --- a/samples/mdi/mdi.cpp +++ b/samples/mdi/mdi.cpp @@ -282,8 +282,13 @@ void MyFrame::OnSize(wxSizeEvent& event) textWindow->SetSize(0, 0, 200, h); GetClientWindow()->SetSize(200, 0, w - 200, h); - + + // FIXME: On wxX11, we need the MDI frame to process this + // event, but on other platforms this should not + // be done. +#ifdef __WXX11__ event.Skip(); +#endif } void MyFrame::InitToolBar(wxToolBar* toolBar)