| 34 | namespace config { |
| 35 | |
| 36 | Result::Type ProcessMessages(Window& window) { |
| 37 | MSG msg; |
| 38 | |
| 39 | while (GetMessage(&msg, NULL, 0, 0) > 0) { |
| 40 | if (!IsDialogMessage(window.GetHandle(), &msg)) { |
| 41 | TranslateMessage(&msg); |
| 42 | |
| 43 | DispatchMessage(&msg); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | return static_cast<Result::Type>(msg.wParam); |
| 48 | } |
| 49 | |
| 50 | LRESULT CALLBACK CustomWindow::WndProc(HWND hwnd, UINT msg, WPARAM wparam, |
| 51 | LPARAM lparam) { |
no test coverage detected