Rev 124 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 124 | Rev 140 | ||
|---|---|---|---|
| Line 9... | Line 9... | ||
| 9 | 9 | ||
| 10 | void DialogBox_Message (messagebox_t *messagebox_parms)  | 
            10 | void DialogBox_Message (messagebox_t *messagebox_parms)  | 
          
| 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, (void *) messagebox_parms); // fire up the thread  | 
            15 | _beginthread (StartThread_ThisDialog, 0, (void *) messagebox_parms); // fire up the thread  | 
          
| 15 | return; // return as soon as the thread is fired up  | 
            16 | return; // return as soon as the thread is fired up  | 
          
| 16 | } | 
            17 | } | 
          
| 17 | 18 | ||
| 18 | 19 | ||
| Line 37... | Line 38... | ||
| 37 | mb = (messagebox_t *) thread_parms; // quick access to message box structure  | 
            38 | mb = (messagebox_t *) thread_parms; // quick access to message box structure  | 
          
| 38 | 39 | ||
| 39 |    // display the message box and wait for it to return | 
            40 |    // display the message box and wait for it to return | 
          
| 40 | MessageBox (IsWindow (mb->hWndParent) ? mb->hWndParent : (IsWindow (hMainWnd) ? hMainWnd : NULL), mb->text, mb->title, mb->flags);  | 
            41 | MessageBox (IsWindow (mb->hWndParent) ? mb->hWndParent : (IsWindow (hMainWnd) ? hMainWnd : NULL), mb->text, mb->title, mb->flags);  | 
          
| 41 | is_dialogbox_message_validated = true;  | 
            42 | is_dialogbox_message_validated = true;  | 
          
| - | 43 | is_dialogbox_displayed = false;  | 
          |
| 42 | 44 | ||
| 43 | the_board.reevaluate = true; // refresh the GUI buttons if needed  | 
            45 | the_board.reevaluate = true; // refresh the GUI buttons if needed  | 
          
| 44 | return; // _endthread() implied  | 
            46 | return; // _endthread() implied  | 
          
| 45 | } | 
            47 | } |