Source code of Windows XP (NT5)
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.

37 lines
652 B

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