Поделиться через


CPropertySheet::SetFinishText

Sets the text in the Finish command button.

void SetFinishText(
   LPCTSTR lpszText 
);

Параметры

  • 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);
   psheet->SetFinishText(_T("Done"));

   return CPropertyPage::OnSetActive();
}

Требования

Header: afxdlgs.h

См. также

Основные понятия

CPropertySheet Class

CPropertySheet Members

Hierarchy Chart