WM_DPICHANGED_BEFOREPARENT message

For Per Monitor v2 top-level windows, this message is sent to all HWNDs in the child HWDN tree of the window that is undergoing a DPI change. This message occurs before the top-level window receives WM_DPICHANGED, and traverses the child tree from the bottom up.

#define WM_DPICHANGED_BEFOREPARENT       0x02E2

Parameters

wParam

This value is unused and will be zero.

lParam

This value is unused and will be zero.

Return value

This value is unused and ignored by the system.

Remarks

There is no default handling of this message in DefWindowProc.

This message is only sent when the top-level window has a DPI awareness context of PMv2.

Requirements

Requirement Value
Minimum supported client
Windows 10, version 1703 [desktop apps only]
Minimum supported server
Windows Server 2016 [desktop apps only]
Header
Winuser.h

See also

WM_DPICHANGED

WM_DPICHANGED_AFTERPARENT