简体   繁体   English

将窗口状态从最大化更改为还原,而无需移动/调整窗口大小?

[英]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. 我正在尝试对Windows进行更细粒度的控制,以最大化/还原行为。 When I restore I want to position and size the window myself overriding the default windows behaviour where it repositions to the original position. 还原时,我想自己定位和调整窗口大小,以覆盖默认的Windows行为,将其重新定位到原始位置。

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来恢复...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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