|
|
Microsoft OS/2 SDK 2.0 05-30-1990
/*==============================================================*\
* img_dlg.c - routines for the application dialogs
* Created 1989, 1990 IBM, Microsoft Corp.
*--------------------------------------------------------------*
*
* This module contains the code for handling the Color and About
* dialog boxes.
*
*--------------------------------------------------------------*
*
* This source file contains the following functions:
*
* AboutDlgProc(hwnd, msg, mp1, mp2)
*
\*==============================================================*/
/*--------------------------------------------------------------*\
* Include files, macros, defined constants, and externs *
\*--------------------------------------------------------------*/
#include <os2.h>
#include <string.h>
#include "img_main.h"
#include "img_xtrn.h"
#include "img_dlg.h"
/****************************************************************\
* Dialog procedure for the About dialog box *
*--------------------------------------------------------------*
* *
* Name: AboutBoxDlgProc(hdlg, msg, mp1, mp2) *
* *
* Purpose: Processes all messages sent to the About Box *
* *
* Usage: Called for each message sent to the About Box *
* dialog box.
* *
* Method: the about box only has a button control so this *
* routine only processes WM_COMMAND messages. Any *
* WM_COMMAND posted must have come from the Ok *
* button so we dismiss the dialog upon receiving it. *
* *
* Returns: Dependent upon message sent *
* *
\****************************************************************/
MRESULT EXPENTRY AboutBoxDlgProc(hdlg, msg, mp1, mp2)
HWND hdlg; /* handle of window */
USHORT msg; /* id of message */
MPARAM mp1; /* first message parameter */
MPARAM mp2; /* second message parameter */
{
switch(msg) {
case WM_COMMAND:
/* no matter what the command, close the dialog */
WinDismissDlg(hdlg, TRUE);
break;
default:
return(WinDefDlgProc(hdlg, msg, mp1, mp2));
break;
}
return 0L;
} /* AboutBoxDlgProc() */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.