home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
smapp100.zip
/
sm10.zip
/
example
/
destroy.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-26
|
641b
|
31 lines
#include "example.h"
void RestoreScreen ( void )
/* Restore screen (color, mode, etc.) back to what it was when the program
was started. */
{
#ifdef GUI
#ifdef OS2
WinStopTimer (hAB, hWndClient, TID_MOVE);
WinReleasePS (hPS);
WinDestroyWindow (hWndFrame);
WinDestroyMsgQueue (hMQ);
WinTerminate (hAB);
#else
closegraph (); /* Return the system to text mode */
#endif
#else
ClrScr ();
normvideo ();
gotoxy (0, iScreenH - 1);
_setcursortype (_NORMALCURSOR);
#endif
}
void Terminate ( void )
/* Get ready to exit this silly program */
{
RestoreScreen ();
}