windows-nt/Source/XPSP1/NT/com/ole2ui32/test/about.cxx

54 lines
1.3 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1994.
//
// 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);
}