Click here to Skip to main content
13,045,417 members (122,783 online)
Rate this:
Please Sign up or sign in to vote.
See more:

Does anyone know what kind of messages or events are sent when you connect an external display to your system?
I noticed that my program went to adjust some of the dialogs when a second display was connected and I'm trying to figure out how to supress them or make them work for me.

If you can point me to a site which explains more of these messages, that will be great too.
Posted 3-May-12 22:08pm
Richard MacCutchan 4-May-12 6:23am
I'm not sure of the answer, but if you have a retail version of Visual Studio you can use Spy++ to track the messages.
enhzflep 4-May-12 13:23pm
Further to what Richard said, you can get free versions of essentially the same tool.
I had the same idea moments ago and just saw his response now.
When I plug-in a second display to my laptop, the new screen becomes my primary monitor and all output is directed to it, while the laptop's panel is turned off. This may mean there are extra/missing messages.

I'm receiving:

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Have a look at WM_DISPLAYCHANGE[^]

And this Driver Development Part 6: Introduction to Display Drivers[^] provides extra information that you will find useful.

Best regards
Espen Harlinn
SAKryukov 5-May-12 22:18pm
Good information, a 5.
Espen Harlinn 7-May-12 3:00am
Thank you, Sergey :-D
Mika Wendelius 23-May-12 0:10am
That should help!
Espen Harlinn 23-May-12 4:29am
Thank you Mika :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 4 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100