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();
}
要求
Header: afxdlgs.h