Restore Minimized Windows

Mar 20, 2013 at 11:19pm
How would you restore a minimized window back to the screen from code instead of by user input?

I have a stopwatch/alarm-clock type program that I'm working on, and I want the user to be able to minimize the window while the timer is counting down, but I want it to restore itself to the middle of the screen when the alarm goes off.

Mar 20, 2013 at 11:26pm
I believe it the ShowWindow(hwnd, SW_SHOW);

This will explain it a bit more in depth.
http://msdn.microsoft.com/en-gb/library/windows/desktop/ms633548%28v=vs.85%29.aspx
Last edited on Mar 20, 2013 at 11:26pm
Mar 21, 2013 at 12:12am
Woohoo!
That function was the last touch I needed to the program.
Thank you.
Last edited on Mar 21, 2013 at 12:13am
Topic archived. No new replies allowed.