// CShapePage is the last wizard property page. Enable the Back // button and change the Next button to Finish. The "Finish" button // will have "Done" as its caption. BOOL CShapePage::OnSetActive() { CPropertySheet* psheet = (CPropertySheet*) GetParent(); psheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_FINISH); psheet->SetFinishText(_T("Done")); return CPropertyPage::OnSetActive(); }
// @pymethod |PyCPropertySheet|SetFinishText|Sets the text for the Finish button PyObject *ui_propsheet_set_finish_text( PyObject *self, PyObject *args ) { CPropertySheet *pPS = pPS=GetPropSheet(self); if (!pPS) return NULL; TCHAR *text; PyObject *obtext; // @pyparm string|text||The next for the button if (!PyArg_ParseTuple( args, "O", &obtext)) return NULL; if (!PyWinObject_AsTCHAR(obtext, &text, FALSE)) return NULL; GUI_BGN_SAVE; pPS->SetFinishText(text); GUI_END_SAVE; PyWinObject_FreeTCHAR(text); RETURN_NONE; }