开发者

Windows 7 Snap - Windows Message?

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_GETMINMAX开发者_开发问答INFO = 0x24; is generated.

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜