CTaskDialog::SetVerificationCheckboxText

Establece el texto que se muestra a la derecha de la casilla de comprobación.

void SetVerificationCheckboxText(
   CString& strVerificationText
);

Parámetros

  • [in] strVerificationText
    El texto que este método muestra al lado de la casilla de comprobación.

Comentarios

Este método produce una excepción con la macro de ASEGURADO (MFC) si esta instancia de Clase CTaskDialog se muestra ya.

Ejemplo

// TODO: Replace the strings below with the appropriate message, 
// main instruction, and dialog title
CString message("This is an important message to the user.");
CString mainInstruction("Important!\nPlease read!");
CString title("Alert Dialog");

CTaskDialog taskDialog(message, mainInstruction, title, 
    TDCBF_YES_BUTTON | TDCBF_NO_BUTTON | TDCBF_CANCEL_BUTTON );

// Add the verification checkbox and set the default state.
taskDialog.SetVerificationCheckboxText(L"Remember your selection.");
taskDialog.SetVerificationCheckbox(false);

taskDialog.DoModal();

if (taskDialog.GetVerificationCheckboxState())
{
    // TODO: Write settings of the task dialog to the registry
}

Requisitos

encabezado: afxtaskdialog.h

Vea también

Referencia

Clase CTaskDialog

Gráfico de jerarquía

CTaskDialog::SetVerificationCheckbox