简体   繁体   中英

Change window status from maximized to restore without moving/resizing the window?

I am trying to have finer grained control over my windows maximize/restore behaviour. When I restore I want to position and size the window myself overriding the default windows behaviour where it repositions to the original position.

I currently restore (which moves the window to its original location) and then move it again to the location I want but this results in a jumpy experience. Can I do change window maximize/restore status without moving the window?

Thanks

您可以尝试GetWindowPlacement ,修改rcNormalPosition, SetWindowPlacement以及最后的ShowWindow来恢复...

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