Subversion Repositories Games.Chess Giants

Rev

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

Rev 130 Rev 140
Line 24... Line 24...
24
 
24
 
25
void DialogBox_Options (void)
25
void DialogBox_Options (void)
26
{
26
{
27
   // helper function to fire up the modeless dialog box
27
   // helper function to fire up the modeless dialog box
28
 
28
 
-
 
29
   is_dialogbox_displayed = true;
29
   _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new one
30
   _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new one
30
 
31
 
31
   return; // return as soon as the thread is fired up
32
   return; // return as soon as the thread is fired up
32
}
33
}
33
 
34
 
Line 49... Line 50...
49
   // to implement a non-modal message box using the Common Controls library.
50
   // to implement a non-modal message box using the Common Controls library.
50
 
51
 
51
   // display the dialog box
52
   // display the dialog box
52
   if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1)
53
   if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1)
53
      is_dialogbox_options_validated = true;
54
      is_dialogbox_options_validated = true;
-
 
55
   TabControl_Destroy (tab_control); // FIXME: move to this dialog's WM_DESTROY ?
-
 
56
   is_dialogbox_displayed = false;
54
 
57
 
55
   TabControl_Destroy (tab_control);
-
 
56
 
58
 
57
   the_board.reevaluate = true; // refresh the GUI buttons if needed
59
   the_board.reevaluate = true; // refresh the GUI buttons if needed
58
   return; // _endthread() implied
60
   return; // _endthread() implied
59
}
61
}
60
 
62