MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / HandleWmCommand

Function HandleWmCommand

TombEngine/Specific/winmain.cpp:430–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428}
429
430void CALLBACK HandleWmCommand(unsigned short wParam)
431{
432 if (wParam == WM_KILLFOCUS)
433 {
434 // make sure we suspend the game (if focus is removed) only if the level is not being loaded
435
436 if (!LevelLoadTask.valid())
437 {
438 SuspendThread((HANDLE)ThreadHandle);
439 g_Renderer.ToggleFullScreen();
440 ResumeThread((HANDLE)ThreadHandle);
441 }
442 }
443}
444
445LRESULT CALLBACK WinAppProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
446{

Callers 1

WinAppProcFunction · 0.85

Calls 2

ToggleFullScreenMethod · 0.80
validMethod · 0.45

Tested by

no test coverage detected