X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fc07dd8c0af97c1b2b421dba93447333d935747..cc59d9396317abec50b184cdfc8fd0bab0058d82:/src/generic/propdlg.cpp?ds=sidebyside diff --git a/src/generic/propdlg.cpp b/src/generic/propdlg.cpp index 5de4cacead..aa4589b2b9 100644 --- a/src/generic/propdlg.cpp +++ b/src/generic/propdlg.cpp @@ -97,11 +97,12 @@ void wxPropertySheetDialog::LayoutDialog(int centreFlags) GetSizer()->SetSizeHints(this); if (centreFlags) Centre(centreFlags); +#else + wxUnusedVar(centreFlags); #endif #if defined(__SMARTPHONE__) if (m_bookCtrl) m_bookCtrl->SetFocus(); - wxUnusedVar(centreFlags); #endif } @@ -164,7 +165,7 @@ wxBookCtrlBase* wxPropertySheetDialog::CreateBookCtrl() bookCtrl = new wxBookCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, style ); if (GetSheetStyle() & wxPROPSHEET_SHRINKTOFIT) - bookCtrl->SetShrinkMode(true); + bookCtrl->SetFitToCurrentPage(true); return bookCtrl; }