Solved

Dual monitor

Posted on 2000-05-17
3
285 Views
Last Modified: 2010-08-05
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
Comment
Question by:panos
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 100 total points
ID: 2819464
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
 

Author Comment

by:panos
ID: 2822980
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
 
LVL 22

Expert Comment

by:nietod
ID: 2823010
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question