| 280 | } |
| 281 | |
| 282 | void WindowImpl::ProcessEvents(bool block) |
| 283 | { |
| 284 | if (m_ownsWindow) |
| 285 | { |
| 286 | if (block) |
| 287 | WaitMessage(); |
| 288 | |
| 289 | MSG message; |
| 290 | while (PeekMessageW(&message, nullptr, 0, 0, PM_REMOVE)) |
| 291 | { |
| 292 | TranslateMessage(&message); |
| 293 | DispatchMessageW(&message); |
| 294 | } |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | void WindowImpl::SetCursor(const Cursor& cursor) |
| 299 | { |