CPropertySheet::SetWizardButtons

마법사 속성 시트에서 뒤로, 다음 또는 마침 단추를 사용할 수 있거나.

void SetWizardButtons(
   DWORD dwFlags 
);

매개 변수

  • dwFlags
    집합 함수 및 마법사 단추 모양을 사용자 지정 하는 플래그입니다.이 매개 변수는 다음 값의 조합 될 수 있습니다.

    • PSWIZB_BACK 백업 단추

    • PSWIZB_NEXT 다음 단추

    • PSWIZB_FINISH 마침 단추

    • PSWIZB_DISABLEDFINISH 단추 사용 안 함 완료

설명

호출 SetWizardButtons 대화 상자를 연; 후에 호출할 수 없습니다 SetWizardButtons 를 호출 하기 전에 DoModal.일반적으로 호출 해야 SetWizardButtons 에서 CPropertyPage::OnSetActive.

마침 단추의 텍스트를 변경 하거나 다음 숨길 하 고 한 번 사용자가 뒤로 단추 마법사 호출 완료 SetFinishText.Note 같은 단추를 완료 하 고 다음에 공유 되는.완료 된 또는 다음 단추를 한 번에 하나만 표시할 수 있습니다.

예제

A CPropertySheet has three wizard property pages: CStylePage, CColorPage, and CShapePage.아래 코드 조각을 활성화 및 비활성화 하는 방법을 보여 줍니다.를 다시다음 단추 속성 페이지 마법사.

// CStylePage is the first wizard property page.  Disable the Back 
// button but enable the Next button.
BOOL CStylePage::OnSetActive() 
{
   CPropertySheet* psheet = (CPropertySheet*) GetParent();   
   psheet->SetWizardButtons(PSWIZB_NEXT);

   return CPropertyPage::OnSetActive();
}
// CColorPage is the second wizard property page. Enable both the 
// Back button and the Next button.
BOOL CColorPage::OnSetActive() 
{
   CPropertySheet* psheet = (CPropertySheet*) GetParent();   
   psheet->SetWizardButtons(PSWIZB_BACK | PSWIZB_NEXT);

   return CPropertyPage::OnSetActive();
}
// 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();
}

요구 사항

헤더: afxdlgs.h

참고 항목

참조

CPropertySheet 클래스

계층 구조 차트