多屏幕显示器编程( 二 )

Programming for Multiple Monitors in Windows 98
Installing 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 programs should not assume that a negative number is invalid when dealing with desktop coordinates.

Because Windows was originally designed to handle only one monitor, some applications will 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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值