MCPcopy Create free account
hub / github.com/HumbleUI/JWM / windowMessageProc

Function windowMessageProc

windows/cc/WindowManagerWin32.cc:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <Log.hh>
5
6static LRESULT CALLBACK windowMessageProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
7 jwm::WindowWin32* window = reinterpret_cast<jwm::WindowWin32*>(GetPropW(hWnd, L"JWM"));
8
9 if (!window) {
10 jwm::AppWin32& app = jwm::AppWin32::getInstance();
11 LRESULT result = app.processEvent(uMsg, wParam, lParam);
12 return result? result: DefWindowProcW(hWnd, uMsg, wParam, lParam);
13 }
14
15 return window->processEvent(uMsg, wParam, lParam);
16}
17
18bool jwm::WindowManagerWin32::init() {
19 // NOTE: We report all coords/sizes in pixels

Callers

nothing calls this directly

Calls 1

processEventMethod · 0.45

Tested by

no test coverage detected