Enumdisplaysetting return different display orientation in the same degree with different graphic
-
Dear all: I use enumdisplaysetting api to get the display orientation. It return different value of the dmDisplayOrientation of DEVMODE structure in the same degree but different graphic. For example: If I rotate the screen in 90 degrees counterclockwise, the api may return 1 with ati graphic, but 3 with nvidia graphic. How to get same result in the same degree with different graphic? Or other method? Best regards, Victor
-
Dear all: I use enumdisplaysetting api to get the display orientation. It return different value of the dmDisplayOrientation of DEVMODE structure in the same degree but different graphic. For example: If I rotate the screen in 90 degrees counterclockwise, the api may return 1 with ati graphic, but 3 with nvidia graphic. How to get same result in the same degree with different graphic? Or other method? Best regards, Victor
-
Dear Holguin: I must be knowing the display orientation, so that I can process the absolute coordinate to windows desktop. The Enumdisplaysetting api returns display orientation with different graphic in xp, but same result in win 7. Does anyelse method to judge the display orientation?(same degree, different graphic, but same result) best regards, Victor
-
Dear Holguin: I must be knowing the display orientation, so that I can process the absolute coordinate to windows desktop. The Enumdisplaysetting api returns display orientation with different graphic in xp, but same result in win 7. Does anyelse method to judge the display orientation?(same degree, different graphic, but same result) best regards, Victor
cedricvictor wrote:
so that I can process the absolute coordinate to windows desktop
This shouldn't matter because coordinates in Windows are always with zero,zero being in the top, left corner of the screen. Whether a screen is rotated 90 degrees to one side, or 270 to the other, you get the same origin reference point (top,left).
-
cedricvictor wrote:
so that I can process the absolute coordinate to windows desktop
This shouldn't matter because coordinates in Windows are always with zero,zero being in the top, left corner of the screen. Whether a screen is rotated 90 degrees to one side, or 270 to the other, you get the same origin reference point (top,left).
While true, the documentation states "measured clockwise". Provided the user has turned the monitor the same direction using both vendor's drivers, one of them is clearly wrong. Does WHQL still exist? If so, perhaps Microsoft would like a ping "Hey, you don't check this!".