diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index f765a70dac..0d91f7fc75 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -170,6 +170,7 @@ MyFrame::MyFrame(const wxString& title) wxButton* aboutBtn = new wxButton(this, wxID_ANY, "About..."); aboutBtn->Bind(wxEVT_BUTTON, &MyFrame::OnAbout, this); sizer->Add(aboutBtn, wxSizerFlags().Center()); + SetSizer(sizer); #endif // wxUSE_MENUS/!wxUSE_MENUS #if wxUSE_STATUSBAR