如何确定哪个屏幕任务栏上 [英] How to determine which screen the taskbar is on

查看:144
本文介绍了如何确定哪个屏幕任务栏上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Screen.PrimaryScreen并不总是在一个多显示器设置工作,因为用户可以将他/她的任务栏的屏幕比主其他。寻找与最低工作区域不工作了的屏幕,因为有可能是显示器有不同的分辨率。

Screen.PrimaryScreen doesn't always work because on a multi-monitor setup the user may move his/her taskbar to a screen other than the primary. Finding the screen with minimum working area doesn't work too because there may be monitors with different resolutions.

任何方式定位屏幕,任务栏?

Any way to locate the screen with the taskbar?

推荐答案

您可以使用一些Windows API调用做到这一点:http://winsharp93.word$p$pss.com/2009/06/29/find-out-size-and-position-of-the-taskbar/ 之后,你可以使用WorkingArea来确定哪个屏幕的任务栏。

You can do it using some Windows API calls: http://winsharp93.wordpress.com/2009/06/29/find-out-size-and-position-of-the-taskbar/ After that you can use the WorkingArea to determine on which screen the taskbar is.

这篇关于如何确定哪个屏幕任务栏上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆