Rev 124 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 124 | Rev 140 | ||
|---|---|---|---|
| Line 14... | Line 14... | ||
| 14 | 14 | ||
| 15 | void DialogBox_SavePosition (void) |
15 | void DialogBox_SavePosition (void) |
| 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 | is_dialogbox_displayed = true; |
|
| 19 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new one |
20 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new one |
| 20 | 21 | ||
| 21 | return; // return as soon as the thread is fired up |
22 | return; // return as soon as the thread is fired up |
| 22 | } |
23 | } |
| 23 | 24 | ||
| Line 64... | Line 65... | ||
| 64 | ofn.Flags = OFN_ENABLESIZING | OFN_EXPLORER | OFN_ENABLEHOOK | OFN_OVERWRITEPROMPT; |
65 | ofn.Flags = OFN_ENABLESIZING | OFN_EXPLORER | OFN_ENABLEHOOK | OFN_OVERWRITEPROMPT; |
| 65 | 66 | ||
| 66 | // display the dialog box and get the file name |
67 | // display the dialog box and get the file name |
| 67 | if (GetSaveFileName (&ofn) != 0) |
68 | if (GetSaveFileName (&ofn) != 0) |
| 68 | is_dialogbox_saveposition_validated = true; |
69 | is_dialogbox_saveposition_validated = true; |
| - | 70 | is_dialogbox_displayed = false; |
|
| 69 | 71 | ||
| 70 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
72 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
| 71 | return; // _endthread() implied |
73 | return; // _endthread() implied |
| 72 | } |
74 | } |