Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

WM_DPICHANGED message

Sent when a window's position changes such that most of its area intersects a monitor with a dots per inch (dpi) that is different from the DPI before the position change.


#define WM_DPICHANGED       0x02E0

Parameters

wParam

The HIWORD of the wParam contains the Y-axis value of the new DPI of the suggested window. The LOWORD of the wParam contains the X-axis value of the new DPI of the suggested window. For example, 96, 120, 144, or 192.

lParam

A pointer to a RECT structure that provides the size and position of the suggested window, scaled for the new DPI.

Return value

If an application processes this message, it should return zero.

Remarks

DPI values correspond to window scaling factors, as described in the following table.

DPI valueScaling percentage
96100%
120125%
144150%
192200%

 

Requirements

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.