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.

54 lines
1.2 KiB

  1. // commands that can be sent to HHA_Msg()
  2. #ifndef __HHA_MSGS_h__
  3. #define __HHA_MSGS_h__
  4. typedef struct {
  5. char szImageLocation[MAX_PATH];
  6. COLORREF clr;
  7. UINT exWindowStyles;
  8. UINT tvStyles;
  9. } HHA_TOC_APPEARANCE;
  10. typedef struct {
  11. PCSTR m_pszBitmap;
  12. int m_cImages;
  13. PCSTR pszDefWindowName;
  14. PCSTR pszDefFrameName;
  15. PCSTR pszBackBitmap;
  16. DWORD* pflags; // array of flags
  17. HFONT m_hfont; // author-specified font to use for child windows
  18. COLORREF m_clrFont; // Font color
  19. int m_hpadding; // horizontal padding around index, contents, and find
  20. int m_vpadding; // vertical padding around index, contents, and find
  21. HGDIOBJ m_hImage;
  22. BOOL m_fPopupMenu;
  23. BOOL m_fWinHelpPopup;
  24. BOOL m_fBinarySitemap; // binary TOC or Index
  25. int cItems;
  26. PCSTR* apszItems; // pointers from m_ptblItems
  27. } HHA_GEN_INFO;
  28. const int HHA_REQUIRED_VERSION = 2;
  29. typedef struct {
  30. int version;
  31. CSiteMap* pSiteMap;
  32. SITEMAP_ENTRY* pSiteMapEntry;
  33. PCSTR pszWindowName;
  34. PCSTR pszFrameName;
  35. PCSTR* apszUrls;
  36. PCSTR* apszUrlNames;
  37. int cTypes;
  38. PCSTR* apszTypes;
  39. HHA_GEN_INFO genInfo;
  40. } HHA_ENTRY_APPEARANCE;
  41. #define DEFAULT_TOC_STYLES (UINT) (WS_BORDER | TVS_DISABLEDRAGDROP | TVS_HASBUTTONS | TVS_LINESATROOT | TVS_SHOWSELALWAYS )
  42. #endif // __HHA_MSGS_h__