mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// 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);
|
|
}
|
|
|