[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

Dual monitor

How can I detect a dual display system in windows 98?
I write in C and I wonder if there are any functions that deal with a dual display situation. Where can I find more information?
0
panos
Asked:
panos
  • 2
1 Solution
 
nietodCommented:
You can use EnumDisplayMonitors() to enumerate all the monitors in a specified rectangle (or all moniutors period.)

let me know if you have any questions.
0
 
panosAuthor Commented:
OK I found that function and a couple of similar omes.
Is there a working example on how to use them all to paint on primary or secondary monitor?
0
 
nietodCommented:
I've never seen any code that uses them or any multi-monitor systems.  

The idea would be to enumerate all the monitors (pass NULL for the rectangle pointer), then for each montor pass its monitor handle to GetMontiorInfo().  Check the dwFlags in the MONITORINFO to see if the monitor is the primary monotyr, if so note its rectangle as the primary rectangle.     If the monitor is not the primary monitor, then "accumulate" it in a rectangle for the non-primary monitors.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now