diff --git a/samples/xrc/myframe.cpp b/samples/xrc/myframe.cpp index 67819b8277..1492fd5731 100644 --- a/samples/xrc/myframe.cpp +++ b/samples/xrc/myframe.cpp @@ -133,6 +133,11 @@ MyFrame::MyFrame(wxWindow* parent) // here. CreateStatusBar( 1 ); #endif // wxUSE_STATUSBAR + + // As we have created the toolbar and status bar after loading the main + // frame from resources, we need to readjust its minimal size to fit both + // its client area contains and the bars. + GetSizer()->SetSizeHints(this); } //-----------------------------------------------------------------------------