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
精彩评论