Page 1 of 1

Forcing an application to minimize

PostPosted: Mar 31, 2007 @ 10:48pm
by BradK3
I'm having difficulty finding out how to force my PocketFrog game to minimize. I've searched the forum and haven't really found a good answer (it may be that I'm too dense, I don't know).

My game uses the Game framework. Is there a method I can call that can minimize my game for me or what?

Help?

PostPosted: Apr 2, 2007 @ 4:32am
by fast_rx
I use

ShowWindow( SW_MINIMIZE);

I think you'd want to make sure you use that after finishing up drawing though (i.e. after the ->Update() , but I may be wrong).

Also, you'll want to make sure you're setting the app name so that you can find it in the running programs list. It's also used to make sure that only one instance can run in the WinMain function with FindWindow.


Edit:
Look here for some stuff about restoring
http://www.pocketmatrix.com/forums/view ... showwindow