Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 5
    Just a note... IsIconic() works just as well as GetWindowPlacement() for checking if a window is minimized... and is a little simpler to deal with.
    – Andy
    Commented Nov 22, 2016 at 18:34
  • It's worth nothing that ShowWindow() doesn't work (fails silently) if the application window you are trying to restore is running under elevated permissions (i.e. as an administrator) and the current process is not. To work around this, ShowWindow() must also be called from a process running with the same elevated permissions. Commented Aug 16, 2021 at 21:02