Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Resuming a full screen Allegro program in windows

Credits go to Matthew Leverton for helping out!
This thread is locked; no one can reply to it. rss feed Print
Resuming a full screen Allegro program in windows
Wilson Saunders
Member #5,872
May 2005
avatar

I am developing a full screen Allegro program that needs to make use of a system call to print a bitmap. This System call works just fine and pulls up a temporary dos windows then closes it after execution. However in the process my main program is minimized. The user can resume the Program by clicking on the program on the task bar. However I was wondering if there were any way to return controll to the allegro program immediately after the system call and save the user the extra step. By the way I am doing this in Windows XP if that is important.

________________________________________________
Play my games at http://monkeydev.com

Matthew Leverton
Supreme Loser
January 1999
avatar

Does this work?

#include <winalleg.h>
// ...
ShowWindow(win_get_window(), SW_MAXIMIZE /* or maybe SW_SHOW*/);

Wilson Saunders
Member #5,872
May 2005
avatar

Thank you Matthew Leverton that was exactly what I needed.

________________________________________________
Play my games at http://monkeydev.com

Go to: