diff --git a/samples/layout/layout.cpp b/samples/layout/layout.cpp index 8eb979722f..df317d7275 100644 --- a/samples/layout/layout.cpp +++ b/samples/layout/layout.cpp @@ -400,7 +400,9 @@ MyFlexSizerFrame::MyFlexSizerFrame(wxFrame* parent) // ---------------------------------------------------------------------------- MyNotebookWithSizerDialog::MyNotebookWithSizerDialog(wxWindow *parent, const wxString &title) - : wxDialog(parent, wxID_ANY, wxString(title)) + : wxDialog(parent, wxID_ANY, wxString(title), + wxDefaultPosition, wxDefaultSize, + wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) { // Begin with first hierarchy: a notebook at the top and // and OK button at the bottom.