Rev 1 | Rev 119 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1 | Rev 19 | ||
|---|---|---|---|
| Line 14... | Line 14... | ||
| 14 | 14 | ||
| 15 | void DialogBox_Quit (void) |
15 | void DialogBox_Quit (void) |
| 16 | { |
16 | { |
| 17 | // helper function to fire up the modeless dialog box |
17 | // helper function to fire up the modeless dialog box |
| 18 | 18 | ||
| 19 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new |
19 | _beginthread (StartThread_ThisDialog, 0, NULL); // fire up a new thread to display the dialog box |
| 20 | 20 | ||
| 21 | return; // return as soon as the thread is fired up |
21 | return; // return as soon as the thread is fired up |
| 22 | } |
22 | } |
| 23 | 23 | ||
| 24 | 24 | ||
| Line 74... | Line 74... | ||
| 74 | SetWindowText (hWnd, LOCALIZE (L"Quit_Title")); |
74 | SetWindowText (hWnd, LOCALIZE (L"Quit_Title")); |
| 75 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_QUIT_QUESTION), LOCALIZE (L"Quit_Question")); |
75 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_QUIT_QUESTION), LOCALIZE (L"Quit_Question")); |
| 76 | SetWindowText (GetDlgItem (hWnd, BUTTON_GIVEUPANDQUIT), LOCALIZE (L"Quit_GiveUpAndQuit")); |
76 | SetWindowText (GetDlgItem (hWnd, BUTTON_GIVEUPANDQUIT), LOCALIZE (L"Quit_GiveUpAndQuit")); |
| 77 | SetWindowText (GetDlgItem (hWnd, BUTTON_BACKTOGAME), LOCALIZE (L"Quit_BackToGame")); |
77 | SetWindowText (GetDlgItem (hWnd, BUTTON_BACKTOGAME), LOCALIZE (L"Quit_BackToGame")); |
| 78 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_QUIT_STATUSBAR), LOCALIZE (L"Quit_StatusBar")); |
78 | Static_SetText (GetDlgItem (hWnd, STATICTEXT_QUIT_STATUSBAR), LOCALIZE (L"Quit_StatusBar")); |
| - | 79 | ||
| - | 80 | // play the "question" system sound |
|
| - | 81 | PlaySound ((LPCWSTR) SND_ALIAS_SYSTEMASTERISK, NULL, SND_ALIAS_ID | SND_ASYNC); |
|
| 79 | 82 | ||
| 80 | // convert the status bar message to a hyperlink |
83 | // convert the status bar message to a hyperlink |
| 81 | ConvertStaticToHyperlink (GetDlgItem (hWnd, STATICTEXT_QUIT_STATUSBAR)); |
84 | ConvertStaticToHyperlink (GetDlgItem (hWnd, STATICTEXT_QUIT_STATUSBAR)); |
| 82 | } |
85 | } |
| 83 | 86 | ||