储备屏幕面积在Windows 7 [英] Reserve screen area in Windows 7

查看:143
本文介绍了储备屏幕面积在Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能保留一个屏幕区域靠近屏幕为您的应用程序的优势在Windows 7?它会表现类似Windows任务栏(即最大化的窗口不会与它重叠)。

Is it possible to reserve a screen area near an edge of the screen for your app in Windows 7? It would behave similar to the Windows taskbar (i.e. maximized windows would not overlap with it).

我正在写与多台监视器适当的支持任务栏应用程序。的主要目的是要表明仅包含在该屏幕上的应用程序的每个屏幕上的任务栏。没有任何现有的解决方案( Ulltramon DisplayFusion )我知道Win 7的工作,没有一个是开源的。

I'm writing a taskbar app with proper support for multiple monitors. The primary purpose is to show a taskbar on each screen containing only the apps on that screen. None of the existing solutions (Ulltramon, DisplayFusion) I know of work for Win 7, and none are open source.

C#code将是很好的,但是任何提示是pciated以及AP $ P $。

C# code would be nice, but any hints are appreciated as well.

推荐答案

我不确定如何直接在C#中做到这一点,但在本土code可以调用SystemParametersInfo与SPI_SETWORKAREA。这是怎么样的任务栏,侧边栏,等都能prevent应用程序重叠他们最大化的窗口。

I'm unsure of how to do this directly in C#, but in native code you can call SystemParametersInfo with SPI_SETWORKAREA. This is how apps like the taskbar, sidebar, and so on can prevent maximized windows from overlapping them.

http://msdn.microsoft.com/en-us/library/ ms724947.aspx 是SystemParametersInfo的文档。

http://msdn.microsoft.com/en-us/library/ms724947.aspx is the documentation for SystemParametersInfo.

<一个href="http://social.msdn.microsoft.com/forums/en-US/winforms/thread/9fe831e5-ccfb-4e8d-a129-68c301c83acb/" rel="nofollow">http://social.msdn.microsoft.com/forums/en-US/winforms/thread/9fe831e5-ccfb-4e8d-a129-68c301c83acb/显示的P / Invoke签名,此方法。

http://social.msdn.microsoft.com/forums/en-US/winforms/thread/9fe831e5-ccfb-4e8d-a129-68c301c83acb/ shows P/Invoke signatures for this method.

这篇关于储备屏幕面积在Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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