/[H6]/UserEditDialog.cpp
ViewVC logotype

Diff of /UserEditDialog.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by torben, Sun Sep 3 10:10:19 2006 UTC revision 61 by torben, Mon Oct 22 13:01:08 2007 UTC
# Line 60  BOOL UserEditDialog::OnInitDialog() Line 60  BOOL UserEditDialog::OnInitDialog()
60    
61  void UserEditDialog::OnBnClickedAdmin()  void UserEditDialog::OnBnClickedAdmin()
62  {  {
63          if (((CButton*)GetDlgItem(IDC_ADMIN))->GetCheck() == true) {          if (((CButton*)GetDlgItem(IDC_ADMIN))->GetCheck() == BST_CHECKED) {
64                  GetDlgItem(IDC_PASSWORD1)->EnableWindow(true);                  GetDlgItem(IDC_PASSWORD1)->EnableWindow(true);
65                  GetDlgItem(IDC_PASSWORD2)->EnableWindow(true);                  GetDlgItem(IDC_PASSWORD2)->EnableWindow(true);
66          } else { //not checked          } else { //not checked
# Line 78  void UserEditDialog::OnBnClickedOk() Line 78  void UserEditDialog::OnBnClickedOk()
78          GetDlgItem(IDC_PASSWORD1)->GetWindowText(password1);          GetDlgItem(IDC_PASSWORD1)->GetWindowText(password1);
79          GetDlgItem(IDC_PASSWORD2)->GetWindowText(password2);          GetDlgItem(IDC_PASSWORD2)->GetWindowText(password2);
80    
81          isAdmin = ((CButton*)GetDlgItem(IDC_ADMIN))->GetCheck();          isAdmin = ( ((CButton*)GetDlgItem(IDC_ADMIN))->GetCheck() == BST_CHECKED);
82    
83          if (inits == "" || name == "") {          if (inits == "" || name == "") {
84                  MessageBox("You must enter initials and name", "Edit User");                  MessageBox("You must enter initials and name", "Edit User");

Legend:
Removed from v.31  
changed lines
  Added in v.61

  ViewVC Help
Powered by ViewVC 1.1.20