Compartilhar via


CPropertySheet::SetFinishText

Sets the text in the Finish command button.

void SetFinishText( 
   LPCTSTR lpszText  
);

Parameters

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

Remarks

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 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();
}

Requirements

Header: afxdlgs.h

See Also

Reference

CPropertySheet Class

Hierarchy Chart