X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc8bc5aa9cd14c158de637acb9e5ed8beb066d57..2e98aa124386e26c78ca725430c0b0c692db9fc2:/src/generic/propdlg.cpp diff --git a/src/generic/propdlg.cpp b/src/generic/propdlg.cpp index d82f8b889c..aa4589b2b9 100644 --- a/src/generic/propdlg.cpp +++ b/src/generic/propdlg.cpp @@ -97,6 +97,8 @@ void wxPropertySheetDialog::LayoutDialog(int centreFlags) GetSizer()->SetSizeHints(this); if (centreFlags) Centre(centreFlags); +#else + wxUnusedVar(centreFlags); #endif #if defined(__SMARTPHONE__) if (m_bookCtrl) @@ -163,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; }