Rev 124 | Rev 161 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 124 | Rev 140 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | // helper function to fire up the modeless dialog box |
33 | // helper function to fire up the modeless dialog box |
34 | 34 | ||
35 | // prepare the sendchallenge structure |
35 | // prepare the sendchallenge structure |
36 | wcscpy_s (sendchallenge.challengee, WCHAR_SIZEOF (sendchallenge.challengee), challengee_name); |
36 | wcscpy_s (sendchallenge.challengee, WCHAR_SIZEOF (sendchallenge.challengee), challengee_name); |
37 | 37 | ||
- | 38 | is_dialogbox_displayed = true; |
|
38 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up the thread |
39 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up the thread |
39 | return; // return as soon as the thread is fired up |
40 | return; // return as soon as the thread is fired up |
40 | } |
41 | } |
41 | 42 | ||
42 | 43 | ||
Line 76... | Line 77... | ||
76 | SendMessage (hThisWnd, WM_CLOSE, 0, 0); // if such a dialog already exists, close it |
77 | SendMessage (hThisWnd, WM_CLOSE, 0, 0); // if such a dialog already exists, close it |
77 | 78 | ||
78 | // display the dialog box |
79 | // display the dialog box |
79 | if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1) |
80 | if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1) |
80 | is_dialogbox_sendchallenge_validated = true; // notify main game thread to fire up our callback |
81 | is_dialogbox_sendchallenge_validated = true; // notify main game thread to fire up our callback |
- | 82 | is_dialogbox_displayed = false; |
|
81 | 83 | ||
82 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
84 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
83 | return; // _endthread() implied |
85 | return; // _endthread() implied |
84 | } |
86 | } |
85 | 87 |