| 46 | } |
| 47 | |
| 48 | void tryLaunchWindow(HINSTANCE hInstance, int nCmdShow) |
| 49 | { |
| 50 | BOOL launched = BrowserWindow::LaunchWindow(hInstance, nCmdShow); |
| 51 | if (!launched) |
| 52 | { |
| 53 | int msgboxID = MessageBox(NULL, L"Could not launch the browser", L"Error", MB_RETRYCANCEL); |
| 54 | |
| 55 | switch (msgboxID) |
| 56 | { |
| 57 | case IDRETRY: |
| 58 | tryLaunchWindow(hInstance, nCmdShow); |
| 59 | break; |
| 60 | case IDCANCEL: |
| 61 | default: |
| 62 | PostQuitMessage(0); |
| 63 | } |
| 64 | } |
| 65 | } |