home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
caspm210.zip
/
QUIKTOUR
/
EXIT.INC
< prev
next >
Wrap
Text File
|
1990-08-07
|
1KB
|
36 lines
/***************************************************************************/
/* This is a sample .INC file that can be tied to an Exit menu pulldown to */
/* exit a PM application. This code fragment will present a PM Message Box*/
/* that asks the user to confirm his/her request to exit the application. */
/* If the Yes push button is pressed, the application is exited. If the */
/* No pushbutton is pressed, the user is returned to the applicaiton. */
/***************************************************************************/
{
USHORT answer;
answer = WinMessageBox (HWND_DESKTOP,
hWnd,
"Are you sure you wish to exit this application?",
"Exit",
NULL,
MB_YESNO | MB_ICONHAND);
switch(answer)
{
case MBID_YES:
WinPostMsg(hWnd, WM_QUIT, 0L, 0L);
break;
case MBID_NO:
break;
default:
break;
}
}
/**************************************************************************/
/* End of ASCII include file EXIT.INC */
/**************************************************************************/