Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the notification when the number of monitors changes?

I'm curious, what is the Win32 notification that is broadcast when the number of monitors in the system changes? I thought it was WM_DISPLAYCHANGE but I was wrong.

like image 549
c00000fd Avatar asked Nov 17 '15 16:11

c00000fd


People also ask

How do I change the display of notifications on multiple monitors?

Click the monitor you want the notifications to appear on (Should highlight green) 4. Under the Multiple Displays Section. Check the box Make this my main display 5. Scroll up and click the Apply Button to set the changes

How do I change the color of notifications on the screen?

Scroll up and click the Apply Button to set the changes ... and voilà! 1. Go to display settings 2. Moved the position of the monitors eg) [1] [2] -> [2] [1] (Whatever variation you want) 3. Click the monitor you want the notifications to appear on (Should highlight green)

How do I display a monitor as identity 1?

a. Unplug all external displays from the back of the computer. b. Plug the monitor (that you want to display as Identity 1) into one of the DVI slots. c. Switch on the computer and Check in Display Properties if it is identified as 1 if not then, repeat steps a-c, this time plugging the monitor into the other DVI slot.

How do I display all 4 Monitors at the same time?

Thanks for your feedback. When you right click the Desktop and select Screen Resolution, do you see all 4 monitors displayed at the top of that window? If you do, position the cursor over any of those monitors and you can drag them to the position where you want them to appear.


1 Answers

This is quite easy to check with Microsoft Spy++. In my case I checked on Windows 7 x64 with two monitors connected and switching the second monitor off and on again.

When removing a monitor you will see a WM_DISPLAYCHANGE, but not when adding a monitor.

You will see a WM_DEVICECHANGE with DBT_DEVNODES_CHANGED (after RegisterDeviceNotification).

You will see WM_SETTINGCHANGE for SPI_SETWORKAREA and SPI_ICONVERTICALSPACING.

And you will see registered messages "UxdDisplayChangeMessage" and "HotplugDetected" (second one only when adding monitor). You can use RegisterWindowMessage to get the identifier for these messages.

like image 197
Werner Henze Avatar answered Oct 26 '22 03:10

Werner Henze