Subversion Repositories Games.Chess Giants

Rev

Rev 19 | Rev 23 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 21
Line 83... Line 83...
83
   else if (message == WM_COMMAND)
83
   else if (message == WM_COMMAND)
84
   {
84
   {
85
      // did we cancel the dialog box ? (IDCANCEL is a system-wide dialog box handler value, that catches the ESC key)
85
      // did we cancel the dialog box ? (IDCANCEL is a system-wide dialog box handler value, that catches the ESC key)
86
      if (wParam_loword == IDCANCEL)
86
      if (wParam_loword == IDCANCEL)
87
         EndDialog (hWnd, 0); // close the dialog box
87
         EndDialog (hWnd, 0); // close the dialog box
-
 
88
 
-
 
89
      // else did the user enter something in the edit boxes ?
-
 
90
      else if (wParam_hiword == EN_CHANGE)
-
 
91
      {
-
 
92
         // enable the validation button only if the two fields have data
-
 
93
         GetDlgItemText (hWnd, EDITBOX_REGISTRATION_EMAILADDRESS, candidate_email, WCHAR_SIZEOF (candidate_email));
-
 
94
         candidate_code = GetDlgItemInt (hWnd, EDITBOX_REGISTRATION_ACTIVATIONCODE, &was_translated, false);
-
 
95
         EnableWindow (GetDlgItem (hWnd, BUTTON_VALIDATECODE), ((candidate_email[0] != 0) && (candidate_code != 0)));
-
 
96
      }
88
 
97
 
89
      // else was it the validation button ?
98
      // else was it the validation button ?
90
      else if (wParam_loword == BUTTON_VALIDATECODE)
99
      else if (wParam_loword == BUTTON_VALIDATECODE)
91
      {
100
      {
92
         // retrieve form data
101
         // retrieve form data