--- UserEditDialog.cpp 2006/09/03 10:10:19 31 +++ UserEditDialog.cpp 2007/10/22 13:01:08 61 @@ -60,7 +60,7 @@ void UserEditDialog::OnBnClickedAdmin() { - if (((CButton*)GetDlgItem(IDC_ADMIN))->GetCheck() == true) { + if (((CButton*)GetDlgItem(IDC_ADMIN))->GetCheck() == BST_CHECKED) { GetDlgItem(IDC_PASSWORD1)->EnableWindow(true); GetDlgItem(IDC_PASSWORD2)->EnableWindow(true); } else { //not checked @@ -78,7 +78,7 @@ GetDlgItem(IDC_PASSWORD1)->GetWindowText(password1); GetDlgItem(IDC_PASSWORD2)->GetWindowText(password2); - isAdmin = ((CButton*)GetDlgItem(IDC_ADMIN))->GetCheck(); + isAdmin = ( ((CButton*)GetDlgItem(IDC_ADMIN))->GetCheck() == BST_CHECKED); if (inits == "" || name == "") { MessageBox("You must enter initials and name", "Edit User");