Subversion Repositories Games.Chess Giants

Rev

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

Rev 130 Rev 140
Line 9... Line 9...
9
 
9
 
10
void DialogBox_Load (void)
10
void DialogBox_Load (void)
11
{
11
{
12
   // helper function to fire up the modeless dialog box
12
   // helper function to fire up the modeless dialog box
13
 
13
 
-
 
14
   is_dialogbox_displayed = true;
14
   _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new one
15
   _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new one
15
 
16
 
16
   return; // return as soon as the thread is fired up
17
   return; // return as soon as the thread is fired up
17
}
18
}
18
 
19
 
Line 111... Line 112...
111
   ofn.Flags = OFN_ENABLESIZING | OFN_EXPLORER | OFN_ENABLEHOOK | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
112
   ofn.Flags = OFN_ENABLESIZING | OFN_EXPLORER | OFN_ENABLEHOOK | OFN_HIDEREADONLY | OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
112
 
113
 
113
   // display the dialog box and get the file name
114
   // display the dialog box and get the file name
114
   if (GetOpenFileName (&ofn) != 0)
115
   if (GetOpenFileName (&ofn) != 0)
115
      is_dialogbox_load_validated = true;
116
      is_dialogbox_load_validated = true;
-
 
117
   is_dialogbox_displayed = false;
116
 
118
 
117
   the_board.reevaluate = true; // refresh the GUI buttons if needed
119
   the_board.reevaluate = true; // refresh the GUI buttons if needed
118
   return; // _endthread() implied
120
   return; // _endthread() implied
119
}
121
}