Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Enumdisplaysetting return different display orientation in the same degree with different graphic

Enumdisplaysetting return different display orientation in the same degree with different graphic

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialjsonquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cedricvictor
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • C cedricvictor

      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

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      1=DMDO_90 and 3=DMDO_270 (from here[^])... why not just check for either condition? when it comes to displays, that's the same thing.

      C 1 Reply Last reply
      0
      • A Albert Holguin

        1=DMDO_90 and 3=DMDO_270 (from here[^])... why not just check for either condition? when it comes to displays, that's the same thing.

        C Offline
        C Offline
        cedricvictor
        wrote on last edited by
        #3

        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

        A 1 Reply Last reply
        0
        • C cedricvictor

          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

          A Offline
          A Offline
          Albert Holguin
          wrote on last edited by
          #4

          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).

          M 1 Reply Last reply
          0
          • A Albert Holguin

            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).

            M Offline
            M Offline
            Mike Nordell
            wrote on last edited by
            #5

            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!".

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups