[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • 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

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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