Annotation of mstools/samples/playsnd/help.c, revision 1.1

1.1     ! root        1: /*
        !             2:     help.c
        !             3: 
        !             4:     Support for the HELP menu item
        !             5: 
        !             6: */
        !             7: 
        !             8: #include <stdlib.h>
        !             9: #include <string.h>
        !            10: #include <windows.h>
        !            11: #include "PlaySnd.h"
        !            12: 
        !            13: void Help(HWND hWnd, DWORD wParam)
        !            14: {
        !            15:     char szHelpFileName[_MAX_PATH];
        !            16: 
        !            17:     strcpy(szHelpFileName, szAppName);
        !            18:     strcat(szHelpFileName, ".HLP");
        !            19: 
        !            20:     switch (wParam) {
        !            21:     case IDM_HELP_INDEX:
        !            22:         WinHelp(hWnd, szHelpFileName, HELP_INDEX, (DWORD)0);
        !            23:         break;
        !            24: 
        !            25:     case IDM_HELP_KEYBOARD:
        !            26:         WinHelp(hWnd, szHelpFileName, HELP_KEY, (DWORD)(LPSTR)"keys");
        !            27:         break;
        !            28: 
        !            29:     case IDM_HELP_HELP:
        !            30:                //WinHelp(hWnd, "WINHELP.HLP", HELP_INDEX, 0L);
        !            31:                WinHelp(hWnd, "", HELP_HELPONHELP, 0);
        !            32:         break;
        !            33: 
        !            34:     default:
        !            35:         break;
        !            36: 
        !            37:     }
        !            38: }

unix.superglobalmegacorp.com

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