X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fc07dd8c0af97c1b2b421dba93447333d935747..2e98aa124386e26c78ca725430c0b0c692db9fc2:/src/generic/propdlg.cpp 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; }