MCPcopy Create free account
hub / github.com/Tracktion/choc / windowProc

Method windowProc

choc/gui/choc_MessageLoop.h:406–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404 }
405
406 static LRESULT CALLBACK windowProc (HWND h, UINT message, WPARAM wParam, LPARAM lParam)
407 {
408 if (message == WM_APP && wParam == magicWParam)
409 {
410 std::unique_ptr<std::function<void()>> f (reinterpret_cast<std::function<void()>*> (lParam));
411 (*f)();
412 }
413
414 return DefWindowProc (h, message, wParam, lParam);
415 }
416
417 static inline constexpr WPARAM magicWParam = 0xc40cc40c;
418

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected