File:  [WindowsNT SDKs] / mstools / samples / playsnd / about.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:21:49 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-oct-1992, ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 328 10-12-1992

/*
    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
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.