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.
45 lines
721 B
45 lines
721 B
/*
|
|
about.c
|
|
|
|
show the apps about box
|
|
|
|
*/
|
|
|
|
#include <windows.h>
|
|
#include "PlaySnd.h"
|
|
|
|
void About(
|
|
HWND hWnd)
|
|
{
|
|
/* show the about box */
|
|
|
|
DialogBox(ghModule, MAKEINTRESOURCE(IDD_ABOUT) //"About"
|
|
, hWnd , (DLGPROC)AboutDlgProc);
|
|
}
|
|
|
|
|
|
LONG AboutDlgProc(HWND hDlg, UINT msg, DWORD wParam, LONG lParam)
|
|
{
|
|
UNREFERENCED_PARAMETER(lParam);
|
|
|
|
switch (msg) {
|
|
case WM_INITDIALOG:
|
|
break;
|
|
|
|
case WM_COMMAND:
|
|
switch (wParam) {
|
|
case IDOK:
|
|
EndDialog(hDlg, TRUE);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
break;
|
|
|
|
default:
|
|
return FALSE; // say we didn't handle it
|
|
break;
|
|
}
|
|
|
|
return TRUE; // say we handled it
|
|
}
|