Restore Minimized Windows

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.

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
Woohoo!
That function was the last touch I needed to the program.
Thank you.
Last edited on
Topic archived. No new replies allowed.