PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Forcing an application to minimize

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?
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