CTaskDialog::SetVerificationCheckboxText
확인 확인란 오른쪽에 표시 되는 텍스트를 설정 합니다.
void SetVerificationCheckboxText(
CString& strVerificationText
);
매개 변수
- [in] strVerificationText
이 메서드는 확인 확인란 옆에 표시 되는 텍스트입니다.
설명
이 메서드는 예외를 throw는 (MFC)를 확인 합니다. 이 경우 매크로의 인스턴스는 CTaskDialog 클래스 이미 표시 됩니다.
예제
// 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
}
요구 사항
헤더: afxtaskdialog.h