Subversion Repositories Games.Chess Giants

Rev

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

Rev 136 Rev 140
Line 16... Line 16...
16
void DialogBox_Resign (int type)
16
void DialogBox_Resign (int type)
17
{
17
{
18
   // helper function to fire up the modeless dialog box
18
   // helper function to fire up the modeless dialog box
19
 
19
 
20
   resign_type = type; // save the resign type for later use
20
   resign_type = type; // save the resign type for later use
-
 
21
   is_dialogbox_displayed = true;
21
   _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new thread to display the dialog box
22
   _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new thread to display the dialog box
22
 
23
 
23
   return; // return as soon as the thread is fired up
24
   return; // return as soon as the thread is fired up
24
}
25
}
25
 
26
 
Line 68... Line 69...
68
   // to implement a non-modal message box using the Common Controls library.
69
   // to implement a non-modal message box using the Common Controls library.
69
 
70
 
70
   // display the dialog box
71
   // display the dialog box
71
   if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1)
72
   if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1)
72
      is_dialogbox_resign_validated = true;
73
      is_dialogbox_resign_validated = true;
-
 
74
   is_dialogbox_displayed = false;
73
 
75
 
74
   the_board.reevaluate = true; // refresh the GUI buttons if needed
76
   the_board.reevaluate = true; // refresh the GUI buttons if needed
75
   return; // _endthread() implied
77
   return; // _endthread() implied
76
}
78
}
77
 
79