Windows API的附加窗口向左或桌面的权 [英] Windows API to attach window to the left or to right of desktop
问题描述
可能重复:结果
<一href=\"http://stackoverflow.com/questions/2792024/how-to-dock-an-application-in-the-windows-desktop\">How在Windows桌面停靠的应用程序?
我需要像谷歌桌面不会窗口的行为。
谷歌桌面的主窗口可以连接到左侧或桌面的权利和不重叠桌面图标。
图标会自动从这个地方动了!
如果最大化另一个窗口它仅使用可用的空间,并且不使用区带由连接谷歌桌面窗口。
它在Windows XP上工作,以及
I need the behavior of window like Google Desktop does. Main window of Google Desktop can be attached to the left or to the right of desktop and DOESN'T overlap desktop icons. Icons automatically move from this place! If maximize another window it uses only available space and doesn't use area took by attached Google Desktop window. It work on Windows XP as well
确实谷歌桌面使用什么API这样的行为?
What API does Google Desktop use for such behavior?
推荐答案
你在谈论的UI元素是一个应用程序栏,或appbar的简称。它的创建和经营使用API函数的`SHAppBarMessage'。
The UI element you're talking about is an application bar, or appbar for short. It's created and operated by using the API function `SHAppBarMessage'.
例如,要创建一个新的appbar,你一个消息标识符Windows可以使用与之通信发送到 ABM_NEW
消息。要定位沿着桌面的一个边缘吧,你把它的 ABM_SETPOS
消息。有定义的相当多的讯息;他们列出我上面链接的页面上。
For instance, to create a new appbar, you sent it the ABM_NEW
message with a message identifier Windows can use to communicate with it. To position the bar along one edge of the desktop, you send it the ABM_SETPOS
message. There are quite a few messages defined; they're listed on the page I linked above.
这篇关于Windows API的附加窗口向左或桌面的权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!