GxWindowProcD3d
function · gx · host
- Address
0x598750· 942 bytes, up to0x598afd- Signature
intptr_t __stdcall (void *hwnd, uint32_t msg, uintptr_t wParam, intptr_t lParam)- Meaning
- Handles the Direct3D device window's messages and passes the rest to the saved procedure
- Confidence
- verified, proof one
- Finding
- gx/window#direct3d-window-messages
Finding: Direct3D window messages in gx: window
0x598750(hwnd, msg, wParam, lParam) reads the device with GetWindowLongA(hwnd, GWL_USERDATA) and handles these messages. A message marked passed on, and every message not
listed, goes to the procedure saved at the device's +0xf28 (hwnd and msg in ecx and
edx, wParam and lParam on the stack) when there is a device and it is set, else to
DefWindowProcA, and that result is returned.
| message | action | returns |
|---|---|---|
WM_CREATE (1) | stores the create parameter as the user data | 0 |
WM_DESTROY (2) | event 2 | 0 |
WM_SIZE (5) | event 0 with {0, 0, height, width}; type 1 for SIZE_MINIMIZED, 2 for SIZE_MAXHIDE, else 0 | passed on |
WM_ACTIVATE (6) | a full-screen device losing activation: event 0, a zero rectangle, type 1 | passed on |
WM_SETFOCUS (7), WM_KILLFOCUS (8) | events 3 and 4 | 0 |
WM_PAINT (0xf) | BeginPaint and EndPaint | 0 |
WM_ERASEBKGND (0x14) | nothing | 0 |
WM_SETCURSOR (0x20) | over the client area of a device with an IDirect3DDevice9: the system cursor off, the device's shown (slots.md, Cursor) | 1 |
WM_DISPLAYCHANGE (0x7e) | a full-screen device: event 1 with the new size | passed on |
WM_SYSCOMMAND (0x112) | SC_SCREENSAVE (0xf140) and SC_MONITORPOWER (0xf170) swallowed | 0 |
WM_SIZING (0x214) | Window sizing, below | 1 |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- SizingRectFitTop gx
- SizingRectFitBottom gx
- SizingRectFitLeft gx
- SizingRectFitRight gx
- SizingRectMinLeft gx
- SizingRectMinRight gx
- SizingRectMinTop gx
- SizingRectMinBottom gx
- 0x592220 gx
Calls and jumps by a bare address, from tables/calls.tsv.