X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/453535a739f649ce43a65fd7e6b9730363bb1b7c..ec184e324214ea06f0c056ab626de5f32bcdad3b:/samples/widgets/static.cpp?ds=sidebyside diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index e9360497b0..c40d3bccc0 100644 --- a/samples/widgets/static.cpp +++ b/samples/widgets/static.cpp @@ -208,7 +208,7 @@ END_EVENT_TABLE() // ============================================================================ IMPLEMENT_WIDGETS_PAGE(StaticWidgetsPage, _T("Static"), - (int)wxPlatform(GENERIC_CTRLS).If(wxMSW,NATIVE_CTRLS) + (int)wxPlatform(GENERIC_CTRLS).If(wxOS_WINDOWS,NATIVE_CTRLS) ); StaticWidgetsPage::StaticWidgetsPage(WidgetsBookCtrl *book, @@ -307,8 +307,6 @@ void StaticWidgetsPage::CreateContent() Reset(); SetSizer(sizerTop); - - sizerTop->Fit(this); } // ----------------------------------------------------------------------------