News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Screen Resolution Notification

Started by dedndave, March 07, 2011, 03:13:32 PM

Previous topic - Next topic

dedndave

which notification (message) tells us if the user changes screen resolution ?

donkey

Probably WM_SETTINGCHANGE though I'm not sure if resolution is covered by that one.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Tedd

All top-level windows receive WM_SETTINGSCHANGE when any of the SystemParametersInfo values changes.
While it doesn't strictly give the screen resolution, SPI_GETWORKAREA gives the usable desktop area which should be what you're actually interested in.

WM_SETTINGCHANGE -- http://msdn.microsoft.com/en-us/library/ms725497%28v=VS.85%29.aspx
SystemParametersInfo -- http://msdn.microsoft.com/en-us/library/ms724947%28VS.85%29.aspx
No snowflake in an avalanche feels responsible.

dedndave

thanks guys

i found it...

WM_DISPLAYCHANGE

i made my program display the message values, then changed resolution and went through the list   :P