| 76 | } |
| 77 | |
| 78 | LRESULT CALLBACK TGFXWindow::WndProc(HWND window, UINT message, WPARAM wparam, |
| 79 | LPARAM lparam) noexcept { |
| 80 | auto tgfxWindow = reinterpret_cast<TGFXWindow*>(GetWindowLongPtr(window, GWLP_USERDATA)); |
| 81 | if (tgfxWindow != nullptr) { |
| 82 | return tgfxWindow->handleMessage(window, message, wparam, lparam); |
| 83 | } |
| 84 | return DefWindowProc(window, message, wparam, lparam); |
| 85 | } |
| 86 | |
| 87 | LRESULT TGFXWindow::handleMessage(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) noexcept { |
| 88 | switch (message) { |
nothing calls this directly
no test coverage detected