Message sent when a monitor is disabled/enabled

Hi,
I am trying to detect the enabling/disabling of a monitor in the Display Properties window in Windows 2000.
I could call ::GetSystemMetrics(SM_CMONITORS) in my application to find out the number of monitors, but would prefer to handle the message sent by Windows to the applications when the number of monitors changes.

Thank you for your time.
[366 byte] By [unni39] at [2007-11-18 20:30:10]
# 1 Re: Message sent when a monitor is disabled/enabled
Try with WM_DISPLAYCHANGE message..
newnick at 2007-11-11 1:12:37 >
# 2 Re: Message sent when a monitor is disabled/enabled
Thanks for the help!
regards,
Unni
unni39 at 2007-11-11 1:13:37 >
# 3 Re: Message sent when a monitor is disabled/enabled
You are Welcome.!:)
newnick at 2007-11-11 1:14:44 >