简体   繁体   中英

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_GETMINMAXINFO = 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM