Windows 窗口停靠 [英] Windows window docking

查看:37
本文介绍了Windows 窗口停靠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在 Windows 中将窗口停靠/对齐到屏幕的一侧,最好使用直接的 Win32 API.我正在寻找的效果就像任务栏——一个在屏幕上有一个保留空间的窗口,这样最大化另一个窗口会使该窗口占据屏幕的其余部分,但让我的窗口保持在原地和可见的位置.

I'm wondering how to dock / snap a window to the side of the screen in Windows, preferably with straight Win32 API. The effect I'm looking for is like the task bar -- a window that has a reserved space on screen, so that maximizing another window makes that window take up the rest of the screen, but leaves my window in place and visible.

我知道各种 IM 客户端都这样做,但无法找到有关如何执行此操作的任何资源.也不知道它的合适名称是什么.

I know various IM clients do this, but haven't been able to find any resources on how to do it. Not sure what the appropriate name for it is either.

应用程序桌面工具栏"是用于查找相关信息的搜索词.

"Application Desktop Toolbar" is the search term to use to find info on this.

推荐答案

IIUYC 您正在寻找一个应用栏(MS 官方称为应用程序桌面工具栏").您确实可以使用 Windows API 创建这些.

IIUYC you're looking for an app bar (MS-officially "Application Desktop Toolbar"). You can indeed create these with the Windows API.

这篇关于Windows 窗口停靠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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