| 292 | #if !PLATFORM_SDL |
| 293 | |
| 294 | LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| 295 | { |
| 296 | // Find window to process that message |
| 297 | if (hwnd != nullptr) |
| 298 | { |
| 299 | // Find window by handle |
| 300 | const auto win = WindowsManager::GetByNativePtr(hwnd); |
| 301 | if (win) |
| 302 | { |
| 303 | return static_cast<WindowsWindow*>(win)->WndProc(msg, wParam, lParam); |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | // Default |
| 308 | return DefWindowProc(hwnd, msg, wParam, lParam); |
| 309 | } |
| 310 | |
| 311 | #endif |
| 312 |