CPropertySheet::SetFinishText

void SetFinishText( LPCTSTR lpszText );

Parameters

lpszText

Points to the text to be displayed on the Finish command button.

Remarks

Call this member function to set the text in the Finish command button. Call SetFinishText to display the text on the Finish command button and hide the Next and Back buttons after the user completes action on the last page of the wizard.

Example

// CShapePage is the last page of the wizard.  The "Finish" button
// will have "Done" as its caption, and both "Back" and "Next"
// buttons are hidden.
BOOL CShapePage::OnSetActive()
{
   CPropertySheet* psheet = (CPropertySheet*) GetParent();
   psheet->SetWizardButtons(PSWIZB_FINISH);
   psheet->SetFinishText("Done");

   return CPropertyPage::OnSetActive();
}

CPropertySheet OverviewClass MembersHierarchy Chart