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. About Multiple Monitors

About Multiple Monitors

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • M Offline
    M Offline
    manish patel
    wrote on last edited by
    #1

    Hello all I want to identify multiple monitors as we can do it by this way: In Display Settings, by pressing Identify button. Is there anyway to do this?? I am running on WinXP sp2 Thanks in advance.

    Manish Patel. B.E. - Information Technology.

    K 1 Reply Last reply
    0
    • M manish patel

      Hello all I want to identify multiple monitors as we can do it by this way: In Display Settings, by pressing Identify button. Is there anyway to do this?? I am running on WinXP sp2 Thanks in advance.

      Manish Patel. B.E. - Information Technology.

      K Offline
      K Offline
      karle
      wrote on last edited by
      #2

      use GetSystemMetrics(SM_CMONITORS) to detect if there is more than one monitor. You can also use: EnumDisplayMonitors() to enumarate monitors and retrieving the rect on screen. GetMonitorInfo() to get information about a special monitor. MonitorFromPoint() to get a handle to a monitor when you have a point. You can use GDI to draw on screen or display a window to identify monitors

      M 1 Reply Last reply
      0
      • K karle

        use GetSystemMetrics(SM_CMONITORS) to detect if there is more than one monitor. You can also use: EnumDisplayMonitors() to enumarate monitors and retrieving the rect on screen. GetMonitorInfo() to get information about a special monitor. MonitorFromPoint() to get a handle to a monitor when you have a point. You can use GDI to draw on screen or display a window to identify monitors

        M Offline
        M Offline
        manish patel
        wrote on last edited by
        #3

        karle, Thanks for your kind reply I want to Draw monitor number on top of all window and only number should be visible as system shows when we click on identify button of system settings property. Any idea? Thanks in advance.

        Manish Patel. B.E. - Information Technology.

        D K 2 Replies Last reply
        0
        • M manish patel

          karle, Thanks for your kind reply I want to Draw monitor number on top of all window and only number should be visible as system shows when we click on identify button of system settings property. Any idea? Thanks in advance.

          Manish Patel. B.E. - Information Technology.

          D Offline
          D Offline
          Dave Calkins
          wrote on last edited by
          #4

          you could make a separate window for each number display and show one on each monitor. make each window a "stay on top" window (see SetWindowPos, z-order argument) so it shows above all other windows. and if all you want is the number, then make the window without any border or title bar and use color key transparency (see the WS_EX_LAYERED extended style, and the SetLayeredWindowAttributes() API using the LWA_COLORKEY flag).

          1 Reply Last reply
          0
          • M manish patel

            karle, Thanks for your kind reply I want to Draw monitor number on top of all window and only number should be visible as system shows when we click on identify button of system settings property. Any idea? Thanks in advance.

            Manish Patel. B.E. - Information Technology.

            K Offline
            K Offline
            karle
            wrote on last edited by
            #5

            you can add the monitor number in each caption of your windows or you create a transparent window with the size of the entire desktop (spreading over all monitors) an draw the number with GDI in this window

            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