Subversion Repositories Games.Chess Giants

Rev

Rev 124 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 124 Rev 140
Line 15... Line 15...
15
void DialogBox_Save (bool want_quit_after_save)
15
void DialogBox_Save (bool want_quit_after_save)
16
{
16
{
17
   // helper function to fire up the modeless Save dialog box
17
   // helper function to fire up the modeless Save dialog box
18
 
18
 
19
   quit_after_save = want_quit_after_save;
19
   quit_after_save = want_quit_after_save;
-
 
20
   is_dialogbox_displayed = true;
20
   _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new one
21
   _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new one
21
 
22
 
22
   return; // return as soon as the thread is fired up
23
   return; // return as soon as the thread is fired up
23
}
24
}
24
 
25
 
Line 100... Line 101...
100
   ofn.Flags = OFN_ENABLESIZING | OFN_EXPLORER | OFN_ENABLEHOOK | OFN_OVERWRITEPROMPT;
101
   ofn.Flags = OFN_ENABLESIZING | OFN_EXPLORER | OFN_ENABLEHOOK | OFN_OVERWRITEPROMPT;
101
 
102
 
102
   // display the dialog box and get the file name
103
   // display the dialog box and get the file name
103
   if (GetSaveFileName (&ofn) != 0)
104
   if (GetSaveFileName (&ofn) != 0)
104
      is_dialogbox_save_validated = true;
105
      is_dialogbox_save_validated = true;
-
 
106
   is_dialogbox_displayed = false;
105
 
107
 
106
   the_board.reevaluate = true; // refresh the GUI buttons if needed
108
   the_board.reevaluate = true; // refresh the GUI buttons if needed
107
   return; // _endthread() implied
109
   return; // _endthread() implied
108
}
110
}