|
|
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:
1.1.1.2 ! root 30: WinHelp(hWnd, "WINHELP.HLP", HELP_INDEX, 0L);
1.1 root 31: break;
32:
33: default:
34: break;
35:
36: }
37: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.