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.

100 lines
3.6 KiB

  1. // Copyright 1996-1997 Microsoft Corporation. All Rights Reserved.
  2. #if _MSC_VER > 1000
  3. #pragma once
  4. #endif
  5. #ifndef _WMP_H_
  6. #define _WMP_H_
  7. // This head file contains private messages for talking between
  8. // HHCTRL.OCX, HtmlHelp windows, HTML Help Workshop, Flash, and other
  9. // components of the HTML Help retail and SDK set
  10. const int MAX_PASS_STRING = (32 * 1024); // maximum string to send to parent
  11. enum PRIVATE_MESSAGES {
  12. // HTML Help Workshop messages
  13. WMP_STOP_RUN_DLG = (WM_USER + 0x100),
  14. WMP_UPDATE_VIEW_UI, // wParam = id, Param = CCmdUI*
  15. WMP_IS_COMMAND_SUPPORTED, // wParam = id
  16. WMP_MSG, // general message
  17. WMP_SETHLP_FILE,
  18. WMP_BUILD_COMPLETE,
  19. WMP_HWND_GRINDER,
  20. WMP_AUTO_MINIMIZE,
  21. WMP_AUTO_CMD_LINE,
  22. WMP_SET_TMPDIR,
  23. WMP_STOP_GRINDING,
  24. WMP_STOP_COMPILING,
  25. WMP_ERROR_COUNT,
  26. WMP_NO_ACTIVATE,
  27. WMP_KILL_TCARD,
  28. WMP_FLASH_COMMAND_LINE,
  29. WMP_INITIALIZE_HTML,
  30. WMP_LOG_MSG, // wParam == PCSTR
  31. WMP_LOAD_LAST_PROJECT,
  32. WMP_CLEAR_LOG,
  33. WMP_STARTUP_HELP, // display startup HTML file
  34. WMP_GRIND_MESSAGE, // message box with grind window as the owner: wParam == psz, lParam == nType
  35. // HHA messages
  36. WMP_WINDOW_CAPTURE = (WM_USER + 0x1C0), // lParam == POINTS
  37. WMP_WINDOW_HILIGHT, // wParam == TRUE/FALSE to hilight, remove hilight, // lParam == POINTS
  38. WMP_KEYBOARD_HOOK, // wParam == virtual key code, // lParam == see KeyboardProc value in API description of keyboard hooks
  39. // THIS CANNOT CHANGE! It is documented externally
  40. WMP_HH_MSG = (WM_USER + 0x1C3), // Notifies window that a string is in shared memory
  41. // Flash messages
  42. WMP_SET_TEXT = (WM_USER + 0x200),
  43. WMP_SET_INFO_FILE,
  44. WMP_ADD_PATTERN,
  45. WMP_CHANGE_SRC,
  46. WMP_BROWSE_OPEN,
  47. WMP_BACKCOLOR_CHANGED,
  48. WMP_PERFORM_CAPTURE, // wParam == POINTS, lParam == capture type
  49. WMP_WHAT_ARE_YOU_DOING,
  50. WMP_KILL_CAPTURE,
  51. WMP_FOCUS_MAIN,
  52. WMP_AUTO_SIZE,
  53. WMP_MOUSE_HOOK,
  54. WMP_UPDATE_STATUS_BAR,
  55. WMP_COMMAND_LINE, // (WM_USER + 0x20d)
  56. WMP_CANCEL,
  57. WMP_CHECK_BROWSE_DIR, // wParam == pszFolder
  58. WMP_CONVERT_MFILES, // file stored in g_pszMfile
  59. // HTML Help messages
  60. WMP_AUTHOR_MSG, // wParam = idResource, lParam = lcStrDup of string -- processing message will free the string
  61. WMP_USER_MSG, // wParam = idResource, lParam = lcStrDup of string or NULL -- processing message will free the string
  62. WMP_PRINT_COMPLETE, // wParam = TRUE/FALSE (for success or failure)
  63. WMP_GET_CUR_FILE, // returns pointer to current compiled HTML file
  64. WMP_JUMP_TO_URL, // wParam = LocalAlloc of URL string
  65. WMP_ANSI_API_CALL = (WM_USER + 0x280), // lParam = pHhDataA
  66. WMP_UNICODE_API_CALL, // lParam = pHhDataW
  67. WMP_HH_WIN_CLOSING,
  68. WMP_FORCE_HH_API_CLOSE, // forceably close all HH windows and HH_API window
  69. WMP_HH_COMMAND_LINE = (WM_USER + 0x284), // TODO: Remove: Currently unused, but not removed because of possible side affects.
  70. WMP_HH_TAB_KEY, // control has received TAB downkey
  71. WMP_HH_ANSI_THREAD_API, // wParam = HH_ANSI_DATA*
  72. WMP_HH_UNI_THREAD_API, // wParam = HH_UNICODE_DATA*
  73. WMP_HH_TRANS_ACCELERATOR, // wParam = CHAR
  74. };
  75. typedef enum {
  76. HHA_DEBUG_ERROR, // Displays string in wParam, asks permission to call DebugBreak();
  77. HHA_SEND_STRING_TO_PARENT, // Sends string in wParam to hhw.exe
  78. HHA_SEND_RESID_TO_PARENT, // sends resource string in hha.dll to hhw.exe
  79. HHA_FIND_PARENT, // finds hhw.exe's window handle
  80. HHA_SEND_RESID_AND_STRING_TO_PARENT,
  81. } HHA_MSG;
  82. #endif // _WMP_H_