Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screen resolution change notification message?

Tags:

c++

windows

I have a WTL app running and would like to know when the screen resolution has changed. The most likely candidate would appear to be SPI_SETWORKAREA sent via the WM_SETTINGCHANGE message but I wondered if this is the correct message to use. This has to work on XP and Windows 7.

like image 738
Rob Avatar asked Feb 23 '23 20:02

Rob


1 Answers

WM_DISPLAYCHANGE is the better mouse trap.

like image 93
Hans Passant Avatar answered Mar 07 '23 14:03

Hans Passant