panos
asked on
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
Is there a working example on how to use them all to paint on primary or secondary monitor?