Rev 124 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 124 | Rev 140 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | 19 | ||
20 | void DialogBox_RenameSides (void) |
20 | void DialogBox_RenameSides (void) |
21 | { |
21 | { |
22 | // helper function to fire up the modeless dialog box |
22 | // helper function to fire up the modeless dialog box |
23 | 23 | ||
- | 24 | is_dialogbox_displayed = true; |
|
24 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new message box thread |
25 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new message box thread |
25 | 26 | ||
26 | return; // return as soon as the thread is fired up |
27 | return; // return as soon as the thread is fired up |
27 | } |
28 | } |
28 | 29 | ||
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_renamesides_validated = true; |
54 | is_dialogbox_renamesides_validated = true; |
- | 55 | is_dialogbox_displayed = false; |
|
54 | 56 | ||
55 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
57 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
56 | return; // _endthread() implied |
58 | return; // _endthread() implied |
57 | } |
59 | } |
58 | 60 |