LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

WM_DISPLAYCHANGE : How do i get it ?

I'm using the Window Message Queue library that NI provides, and I'm trying to get the WM_DISPLAYCHANGE message. It's included in the List of windows message, I modified the example with the correct number (0x007E) but when I change the resolution (by using the property of screen) the Vi doesn't get the message.
Does anybody know how to do this?
0 Kudos
Message 1 of 3
(4,074 Views)
Hi,

the WM_DISPLAYCHANGE message is coded as 0x007E. This is equal to 126 in decimal representation.
What you need to do is to handle the event corresponding to 126 as shown in the attached example.

Regards
AlessioD
National Instruments
Message 2 of 3
(4,074 Views)
Many thanks !
I had already tried to modify the provided example, but without success. Instead your example works correctly.I'm looking for the differences.
Regards

Filippo
0 Kudos
Message 3 of 3
(4,074 Views)