Skip to content

Latest commit

 

History

History
81 lines (49 loc) · 1.78 KB

wm-displaychange.md

File metadata and controls

81 lines (49 loc) · 1.78 KB
description ms.assetid title ms.topic ms.date
The WM\_DISPLAYCHANGE message is sent to all windows when the display resolution has changed.
5a6111fd-648e-41a9-aaf8-e5d93f5d54cd
WM_DISPLAYCHANGE message (Winuser.h)
reference
05/31/2018

WM_DISPLAYCHANGE message

The WM_DISPLAYCHANGE message is sent to all windows when the display resolution has changed.

A window receives this message through its WindowProc function.

LRESULT CALLBACK WindowProc(
  HWND hwnd, 
  UINT  uMsg, 
  WPARAM wParam, 
  LPARAM lParam   
);

Parameters

wParam

The new image depth of the display, in bits per pixel.

lParam

The low-order word specifies the horizontal resolution of the screen.

The high-order word specifies the vertical resolution of the screen.

Remarks

This message is only sent to top-level windows. For all other windows it is posted.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Painting and Drawing Overview

Painting and Drawing Messages

HIWORD

LOWORD