Windows 7 Snap - Windows 消息?
在我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
调用 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.