- // Problem with Motif whereby it doesn't size properly unless
- // you set the size again (to a different size than before,
- // since SetSize is optimized)
-#ifdef __WXMOTIF__
- frame->SetSize(-1, -1, 370, 390);
+ // Problem with generic wxNotebook implementation whereby it doesn't size properly unless
+ // you set the size again
+#if defined(__WIN16__)
+ int width, height;
+ frame->GetSize(& width, & height);
+ frame->SetSize(-1, -1, width, height);