File:  [WindowsNT SDKs] / mstools / samples / playsnd / help.c
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:23:56 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-nov-1993, ntsdk-jul-1993, HEAD
Microsoft Windows NT Build 511 (SDK Final Release) 07-24-1993

/*
    help.c

    Support for the HELP menu item

*/

#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include "PlaySnd.h"

void Help(HWND hWnd, DWORD wParam)
{
    char szHelpFileName[_MAX_PATH];

    strcpy(szHelpFileName, szAppName);
    strcat(szHelpFileName, ".HLP");

    switch (wParam) {
    case IDM_HELP_INDEX:
        WinHelp(hWnd, szHelpFileName, HELP_INDEX, (DWORD)0);
        break;

    case IDM_HELP_KEYBOARD:
        WinHelp(hWnd, szHelpFileName, HELP_KEY, (DWORD)(LPSTR)"keys");
        break;

    case IDM_HELP_HELP:
		WinHelp(hWnd, "WINHELP.HLP", HELP_INDEX, 0L);
        break;

    default:
        break;

    }
}

unix.superglobalmegacorp.com

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