Share via


CPropertyPage::OnWizardBack

Esta función miembro llaman el marco cuando el usuario hace clic en el botón atrás en un asistente.

virtual LRESULT OnWizardBack();

Valor devuelto

0 automáticamente para llegar a la página siguiente; – 1 para evitar que la página cambia.Para saltar a una página que no sea la siguiente, devuelve el identificador de diálogo que se muestra.

Comentarios

Invalide esta función miembro para especificar una acción que el usuario debe realizar cuando se presiona el botón atrás.

Para obtener más información sobre cómo hacer una hoja de propiedades de asistente-tipo, vea CPropertySheet:: SetWizardMode.

Ejemplo

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

Requisitos

encabezado: afxdlgs.h

Vea también

Referencia

Clase de CPropertyPage

Gráfico de jerarquía

CPropertySheet::SetWizardMode