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. Make programme identify multi-display

Make programme identify multi-display

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
2 Posts 2 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.
  • T Offline
    T Offline
    TianYang
    wrote on last edited by
    #1

    My computer have two VGA adapter ( No.1, No.2 ), set No.1 to the main display, No.2 is free, I want capture the content of No.1, then make some transform and copy to No.2. The puzzle is, how to identify No.2( or No.3, No.4.. ), as far as know the function GetDC( NULL ) can get desktop( main display ) content.

    S 1 Reply Last reply
    0
    • T TianYang

      My computer have two VGA adapter ( No.1, No.2 ), set No.1 to the main display, No.2 is free, I want capture the content of No.1, then make some transform and copy to No.2. The puzzle is, how to identify No.2( or No.3, No.4.. ), as far as know the function GetDC( NULL ) can get desktop( main display ) content.

      S Offline
      S Offline
      Scott H Settlemier
      wrote on last edited by
      #2

      use EnumDisplayMonitors[^]; I think the callback gets you a dc to the particular portion of the virtual desktop for each monitor.

      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