MFC ダイアログ上のボタンを無効にする

CButton *button=(CButton*)GetDlgItem(IDC_BUTTON1);
// 使用禁止
button->EnableWindow(FALSE);
// 使用許可
button->EnableWindow(TRUE);