다음을 통해 공유


CPropertyPage::OnWizardBack

마법사의 뒤로 단추를 클릭할 때이 멤버 함수는 프레임 워크에서 호출 됩니다.

virtual LRESULT OnWizardBack();

반환 값

0 자동으로 다음 페이지로 이동 합니다. -1로 페이지를 변경 하지 못하도록 합니다. 다음 중이 아닌 페이지를 이동 하려면 표시 하는 대화의 식별자를 반환 합니다.

설명

[뒤로] 단추를 누르면 사용자가 수행 해야 하는 일부 동작을 지정 하려면이 멤버 함수를 재정의 합니다.

마법사 형식의 속성 시트를 만드는 방법에 대 한 자세한 내용은 CPropertySheet::SetWizardMode.

예제

// The Back button is selected from the propertysheet.  Get the selected  
// radio button of the page by looping through all buttons on the  
// pages.  m_radioColor is a member variable of  
// CColorPage (a CPropertyPage-derived class).  Its initial value  
// is initialized in OnInitDialog().
LRESULT CColorPage::OnWizardBack() 
{
   for (int id = IDC_RADIOBLACK; id <= IDC_RADIOGREEN; id++) 
   {
      CButton* button = (CButton*) GetDlgItem(id);
      if (button->GetCheck() == 1)
      {
         m_radioColor = id - IDC_RADIOBLACK;
         break;
      }
   }

   return CPropertyPage::OnWizardBack();
}

요구 사항

헤더: afxdlgs.h

참고 항목

참조

CPropertyPage 클래스

계층 구조 차트

CPropertySheet::SetWizardMode