Rev 124 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 124 | Rev 140 | ||
|---|---|---|---|
| Line 32... | Line 32... | ||
| 32 | 32 | ||
| 33 | void DialogBox_SendSeek (void) |
33 | void DialogBox_SendSeek (void) |
| 34 | { |
34 | { |
| 35 | // helper function to fire up the modeless dialog box |
35 | // helper function to fire up the modeless dialog box |
| 36 | 36 | ||
| - | 37 | is_dialogbox_displayed = true; |
|
| 37 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up the thread |
38 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up the thread |
| 38 | return; // return as soon as the thread is fired up |
39 | return; // return as soon as the thread is fired up |
| 39 | } |
40 | } |
| 40 | 41 | ||
| 41 | 42 | ||
| Line 82... | Line 83... | ||
| 82 | SendMessage (hThisWnd, WM_CLOSE, 0, 0); // if such a dialog already exists, close it |
83 | SendMessage (hThisWnd, WM_CLOSE, 0, 0); // if such a dialog already exists, close it |
| 83 | 84 | ||
| 84 | // display the dialog box |
85 | // display the dialog box |
| 85 | if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1) |
86 | if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1) |
| 86 | is_dialogbox_sendseek_validated = true; // notify main game thread to fire up our callback |
87 | is_dialogbox_sendseek_validated = true; // notify main game thread to fire up our callback |
| - | 88 | is_dialogbox_displayed = false; |
|
| 87 | 89 | ||
| 88 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
90 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
| 89 | return; // _endthread() implied |
91 | return; // _endthread() implied |
| 90 | } |
92 | } |
| 91 | 93 | ||