激活复选框 CHECKBOX
SendMessage(GetDlgItem(hDialog, IDC_CHECK1), BM_SETCHECK, BST_CHECKED, 0);
判断复选框CHECKBOX是否处于选中状态
bool flag_checked = ( BST_CHECKED == IsDlgButtonChecked(hDialog, IDC_CHECK1) );
激活复选框 CHECKBOX
SendMessage(GetDlgItem(hDialog, IDC_CHECK1), BM_SETCHECK, BST_CHECKED, 0);
判断复选框CHECKBOX是否处于选中状态
bool flag_checked = ( BST_CHECKED == IsDlgButtonChecked(hDialog, IDC_CHECK1) );