Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Sets the text in the Finish command button.

void SetFinishText( 
   LPCTSTR lpszText  


Points to the text to be displayed on 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.

// 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);

   return CPropertyPage::OnSetActive();

Header: afxdlgs.h

© 2015 Microsoft