Multi-screen display programming (2)

zhaozj2021-02-08  217

Programming for Multiple Monitors in Windows 98Installing Multiple Monitors

Continued from Introduction

Setting up multiple monitors is relatively easy, but there are a few ground rules. Both of your video cards must be on the PCI bus, and your secondary display must be one of the devices supported by Windows. Most popular brands of PCI display adapters are Currently Supported, and the list will Surely Expand by The Time Windows 98 IS Released.

One minor issue in the installation process is that the newly added video card will become your primary display. The documentation states that this inconvenience stems from a limitation of the PCI bus. If you want your current video card to be your primary display, you will NEED TO Do Some Installation Juggling. Just Remember That Any Newly Added Display Adapter Will Become Your Primary Desktop.

Once you've installed a second monitor, the Display Properties control panel will contain a new Monitors tab (see Figure 1), which replaces the Settings tab. From the Monitors tab you can change the positioning of your monitors and the display settings of each individual display, such as resolution and number of colors. Windows uses the monitors' resolution and relative positioning to set up the virtual desktop and its coordinate system (see Figure 2). The top-left corner of the primary display is always position (0 , 0), with the x-coordinates increasing as you move right and the y-coordinates increasing as you move down. The coordinates of additional monitors are determined by their positions relative to the primary display. Since Windows 98 allows negative coordinates within the desktop Window Your Program Should Not Assal That A Negative Number Is Invalid When Dealing with Desk Coordinates.Because Windows Was Originally Designed To Handle Only ONE Monitor, Some Applications Wil l not behave correctly on a multiple-monitor system. While the problems are more often annoying than fatal, most applications will require some slight changes to operate optimally on a system with more than one monitor.

Next: New Multiple-Monitor Win32 API Functions

Published as power programming in the 4/7/98 Issue of pc magazine.

转载请注明原文地址:https://www.9cbs.com/read-1694.html

New Post(0)