开发者

Is there any Windows API that can "normalize" or "maximize" a window?

开发者 https://www.devze.com 2023-01-09 05:56 出处:网络
I was using Ruby\'s Win32API to MoveWindow to move a window and resize it. But if the window is minimized, it won\'t s开发者_开发技巧how.

I was using Ruby's Win32API to MoveWindow to move a window and resize it.

But if the window is minimized, it won't s开发者_开发技巧how.

SetWindowPos works too, and has a flag to hide or show the window, but it is to only make a window visible or invisible, not about minimizing or normalizing.

I also tried SetForegroundWindow and SetActiveWindow and they won't work either. Is there a call to make a window normalized or maximized?


ShowWindow(hwnd, SW_RESTORE) may be what you're looking for. See: MSDN docs

0

精彩评论

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