Subversion Repositories Games.Chess Giants

Rev

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

Rev 124 Rev 140
Line 18... Line 18...
18
 
18
 
19
void DialogBox_PawnPromotion (void)
19
void DialogBox_PawnPromotion (void)
20
{
20
{
21
   // helper function to fire up the modeless dialog box
21
   // helper function to fire up the modeless dialog box
22
 
22
 
-
 
23
   is_dialogbox_displayed = true;
23
   _beginthread (StartThread_ThisDialog, 0, NULL); // so fire up a new one
24
   _beginthread (StartThread_ThisDialog, 0, NULL); // so fire up a new one
24
 
25
 
25
   return; // return as soon as the thread is fired up
26
   return; // return as soon as the thread is fired up
26
}
27
}
27
 
28
 
Line 67... Line 68...
67
 
68
 
68
   // display the dialog box
69
   // display the dialog box
69
   promotion_type = DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog);
70
   promotion_type = DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog);
70
   if (promotion_type > 0)
71
   if (promotion_type > 0)
71
      is_dialogbox_pawnpromotion_validated = true;
72
      is_dialogbox_pawnpromotion_validated = true;
-
 
73
   is_dialogbox_displayed = false;
72
 
74
 
73
   the_board.reevaluate = true; // refresh the GUI buttons if needed
75
   the_board.reevaluate = true; // refresh the GUI buttons if needed
74
   return; // _endthread() implied
76
   return; // _endthread() implied
75
}
77
}
76
 
78