Windows 7 Snap - Windows 消息?

发布于 2024-09-15 14:33:52 字数 159 浏览 4 评论 0原文

在我的 Windows 窗体应用程序中,我想捕获 Windows 7 快照消息,有谁知道窗口即将被快照时会生成哪条消息。

我尝试监听该应用程序,它看起来像 WM_GETMINMAXINFO = 0x24;被生成。

谁能确认这是否真的是 snap 的 Windows 消息?

In my windows form application I want to capture the windows 7 snap message, does anyone know which message is generated when the window is about to be snapped.

I tried to listen in to the application and it looks like WM_GETMINMAXINFO = 0x24; is generated.

Can anyone confirm if thats really the windows message for snap?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

待"谢繁草 2024-09-22 14:33:52

调用 WM_GETMINMAXINFO 来确定窗口的最小大小和最大大小,它在 SNAP 期间调用,以便它不会将窗口大小调整到超出其实际轮廓大小,因此,如果您有一个高度为 500 且高度恒定的应用程序,您不希望 Windows 调整其大小以适应屏幕的高度。

然后它应该调用 SetWindowPlacement 函数。

A WM_GETMINMAXINFO is called to determine the minimum size and max size the window, its called during SNAP so that it does not resize the window beyond its actual outlined size, so if you have an application that is 500 in height and that is a constant height, you dont want windows to resize it to fit the height of your screen.

It should then call the SetWindowPlacement function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文