X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f60d0f944a6ce86bce59901e7ea3811f0992bce7..4fa688d8bced718a7ef35d4ebd3c4db6eb2afa7d:/samples/notebook/test.cpp diff --git a/samples/notebook/test.cpp b/samples/notebook/test.cpp index 7ee1dfb3e8..4070a935bd 100644 --- a/samples/notebook/test.cpp +++ b/samples/notebook/test.cpp @@ -44,9 +44,11 @@ bool MyApp::OnInit(void) frame = new MyFrame((wxFrame*) NULL, -1, (char *) "Notebook", wxPoint(-1, -1), wxSize(365, 390), wxDEFAULT_FRAME_STYLE); // Problem with generic wxNotebook implementation whereby it doesn't size properly unless - // you set the size again (to a different size than before, since SetSize is optimized) -#if defined(__WXMOTIF__) || defined(__WIN16__) - frame->SetSize(-1, -1, 370, 390); + // you set the size again +#if defined(__WIN16__) + int width, height; + frame->GetSize(& width, & height); + frame->SetSize(-1, -1, width, height); #endif return TRUE;