• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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