| 832 | } |
| 833 | |
| 834 | void MSWindowsScreen::handleSystemEvent(const Event &event) |
| 835 | { |
| 836 | MSG *msg = static_cast<MSG *>(event.getData()); |
| 837 | assert(msg != nullptr); |
| 838 | |
| 839 | if (onPreDispatch(msg->hwnd, msg->message, msg->wParam, msg->lParam)) { |
| 840 | return; |
| 841 | } |
| 842 | TranslateMessage(msg); |
| 843 | DispatchMessage(msg); |
| 844 | } |
| 845 | |
| 846 | void MSWindowsScreen::updateButtons() |
| 847 | { |