MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / WndProc

Function WndProc

Source/Engine/Platform/Windows/WindowsPlatform.cpp:294–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292#if !PLATFORM_SDL
293
294LRESULT 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

Callers 1

WndProcMethod · 0.70

Calls 1

WndProcMethod · 0.45

Tested by

no test coverage detected