home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
com
/
activedocument
/
dfv
/
about.cxx
next >
Wrap
C/C++ Source or Header
|
1995-02-13
|
1KB
|
54 lines
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995.
//
// File: about.cxx
//
// Contents: implementation for a simple about dialog box
//
// Classes: CAbout
//
// Functions:
//
// History: 6-08-94 stevebl Created
//
//----------------------------------------------------------------------------
#include <windows.h>
#include "about.h"
//+---------------------------------------------------------------------------
//
// Member: CAbout::DialogProc
//
// Synopsis: dialog proc for the About dialog box
//
// Arguments: [uMsg] - message
// [wParam] - first message parameter
// [lParam] - second message parameter
//
// History: 4-12-94 stevebl Created for MFract
// 6-08-94 stevebl Stolen from MFract
//
//----------------------------------------------------------------------------
BOOL CAbout::DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{
case WM_INITDIALOG:
return(TRUE);
case WM_COMMAND:
if (LOWORD(wParam) == IDOK
|| LOWORD(wParam) == IDCANCEL)
{
EndDialog(hwndDlg, TRUE);
return(TRUE);
}
}
return(FALSE);
}