ReactOS 0.4.16-dev-240-gdb5fa3b
htmlhelp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tagHH_NOTIFY
 
struct  tagHH_POPUPA
 
struct  tagHH_POPUPW
 
struct  tagHH_ALINKA
 
struct  tagHH_ALINKW
 
struct  tagHH_ENUM_IT
 
struct  tagHH_ENUM_CAT
 
struct  tagHH_SET_INFOTYPE
 
struct  tagHH_FTS_QUERYA
 
struct  tagHH_FTS_QUERYW
 
struct  tagHH_WINTYPEA
 
struct  tagHH_WINTYPEW
 
struct  tagHH_NTRACKA
 
struct  tagHH_NTRACKW
 

Macros

#define HH_DISPLAY_TOPIC   0x00
 
#define HH_HELP_FINDER   0x00
 
#define HH_DISPLAY_TOC   0x01
 
#define HH_DISPLAY_INDEX   0x02
 
#define HH_DISPLAY_SEARCH   0x03
 
#define HH_SET_WIN_TYPE   0x04
 
#define HH_GET_WIN_TYPE   0x05
 
#define HH_GET_WIN_HANDLE   0x06
 
#define HH_ENUM_INFO_TYPE   0x07
 
#define HH_SET_INFO_TYPE   0x08
 
#define HH_SYNC   0x09
 
#define HH_RESERVED1   0x0A
 
#define HH_RESERVED2   0x0B
 
#define HH_RESERVED3   0x0C
 
#define HH_KEYWORD_LOOKUP   0x0D
 
#define HH_DISPLAY_TEXT_POPUP   0x0E
 
#define HH_HELP_CONTEXT   0x0F
 
#define HH_TP_HELP_CONTEXTMENU   0x10
 
#define HH_TP_HELP_WM_HELP   0x11
 
#define HH_CLOSE_ALL   0x12
 
#define HH_ALINK_LOOKUP   0x13
 
#define HH_GET_LAST_ERROR   0x14
 
#define HH_ENUM_CATEGORY   0x15
 
#define HH_ENUM_CATEGORY_IT   0x16
 
#define HH_RESET_IT_FILTER   0x17
 
#define HH_SET_INCLUSIVE_FILTER   0x18
 
#define HH_SET_EXCLUSIVE_FILTER   0x19
 
#define HH_INITIALIZE   0x1C
 
#define HH_UNINITIALIZE   0x1D
 
#define HH_SAFE_DISPLAY_TOPIC   0x20
 
#define HH_PRETRANSLATEMESSAGE   0xFD
 
#define HH_SET_GLOBAL_PROPERTY   0xFC
 
#define HHWIN_PROP_TAB_AUTOHIDESHOW   0x00000001
 
#define HHWIN_PROP_ONTOP   0x00000002
 
#define HHWIN_PROP_NOTITLEBAR   0x00000004
 
#define HHWIN_PROP_NODEF_STYLES   0x00000008
 
#define HHWIN_PROP_NODEF_EXSTYLES   0x00000010
 
#define HHWIN_PROP_TRI_PANE   0x00000020
 
#define HHWIN_PROP_NOTB_TEXT   0x00000040
 
#define HHWIN_PROP_POST_QUIT   0x00000080
 
#define HHWIN_PROP_AUTO_SYNC   0x00000100
 
#define HHWIN_PROP_TRACKING   0x00000200
 
#define HHWIN_PROP_TAB_SEARCH   0x00000400
 
#define HHWIN_PROP_TAB_HISTORY   0x00000800
 
#define HHWIN_PROP_TAB_FAVORITES   0x00001000
 
#define HHWIN_PROP_CHANGE_TITLE   0x00002000
 
#define HHWIN_PROP_NAV_ONLY_WIN   0x00004000
 
#define HHWIN_PROP_NO_TOOLBAR   0x00008000
 
#define HHWIN_PROP_MENU   0x00010000
 
#define HHWIN_PROP_TAB_ADVSEARCH   0x00020000
 
#define HHWIN_PROP_USER_POS   0x00040000
 
#define HHWIN_PROP_TAB_CUSTOM1   0x00080000
 
#define HHWIN_PROP_TAB_CUSTOM2   0x00100000
 
#define HHWIN_PROP_TAB_CUSTOM3   0x00200000
 
#define HHWIN_PROP_TAB_CUSTOM4   0x00400000
 
#define HHWIN_PROP_TAB_CUSTOM5   0x00800000
 
#define HHWIN_PROP_TAB_CUSTOM6   0x01000000
 
#define HHWIN_PROP_TAB_CUSTOM7   0x02000000
 
#define HHWIN_PROP_TAB_CUSTOM8   0x04000000
 
#define HHWIN_PROP_TAB_CUSTOM9   0x08000000
 
#define HHWIN_TB_MARGIN   0x10000000
 
#define HHWIN_PARAM_PROPERTIES   0x00000002
 
#define HHWIN_PARAM_STYLES   0x00000004
 
#define HHWIN_PARAM_EXSTYLES   0x00000008
 
#define HHWIN_PARAM_RECT   0x00000010
 
#define HHWIN_PARAM_NAV_WIDTH   0x00000020
 
#define HHWIN_PARAM_SHOWSTATE   0x00000040
 
#define HHWIN_PARAM_INFOTYPES   0x00000080
 
#define HHWIN_PARAM_TB_FLAGS   0x00000100
 
#define HHWIN_PARAM_EXPANSION   0x00000200
 
#define HHWIN_PARAM_TABPOS   0x00000400
 
#define HHWIN_PARAM_TABORDER   0x00000800
 
#define HHWIN_PARAM_HISTORY_COUNT   0x00001000
 
#define HHWIN_PARAM_CUR_TAB   0x00002000
 
#define HHWIN_BUTTON_EXPAND   0x00000002
 
#define HHWIN_BUTTON_BACK   0x00000004
 
#define HHWIN_BUTTON_FORWARD   0x00000008
 
#define HHWIN_BUTTON_STOP   0x00000010
 
#define HHWIN_BUTTON_REFRESH   0x00000020
 
#define HHWIN_BUTTON_HOME   0x00000040
 
#define HHWIN_BUTTON_BROWSE_FWD   0x00000080
 
#define HHWIN_BUTTON_BROWSE_BCK   0x00000100
 
#define HHWIN_BUTTON_NOTES   0x00000200
 
#define HHWIN_BUTTON_CONTENTS   0x00000400
 
#define HHWIN_BUTTON_SYNC   0x00000800
 
#define HHWIN_BUTTON_OPTIONS   0x00001000
 
#define HHWIN_BUTTON_PRINT   0x00002000
 
#define HHWIN_BUTTON_INDEX   0x00004000
 
#define HHWIN_BUTTON_SEARCH   0x00008000
 
#define HHWIN_BUTTON_HISTORY   0x00010000
 
#define HHWIN_BUTTON_FAVORITES   0x00020000
 
#define HHWIN_BUTTON_JUMP1   0x00040000
 
#define HHWIN_BUTTON_JUMP2   0x00080000
 
#define HHWIN_BUTTON_ZOOM   0x00100000
 
#define HHWIN_BUTTON_TOC_NEXT   0x00200000
 
#define HHWIN_BUTTON_TOC_PREV   0x00400000
 
#define HHWIN_DEF_BUTTONS    (HHWIN_BUTTON_EXPAND | HHWIN_BUTTON_BACK | HHWIN_BUTTON_OPTIONS | HHWIN_BUTTON_PRINT)
 
#define IDTB_EXPAND   200
 
#define IDTB_CONTRACT   201
 
#define IDTB_STOP   202
 
#define IDTB_REFRESH   203
 
#define IDTB_BACK   204
 
#define IDTB_HOME   205
 
#define IDTB_SYNC   206
 
#define IDTB_PRINT   207
 
#define IDTB_OPTIONS   208
 
#define IDTB_FORWARD   209
 
#define IDTB_NOTES   210
 
#define IDTB_BROWSE_FWD   211
 
#define IDTB_BROWSE_BACK   212
 
#define IDTB_CONTENTS   213
 
#define IDTB_INDEX   214
 
#define IDTB_SEARCH   215
 
#define IDTB_HISTORY   216
 
#define IDTB_FAVORITES   217
 
#define IDTB_JUMP1   218
 
#define IDTB_JUMP2   219
 
#define IDTB_CUSTOMIZE   221
 
#define IDTB_ZOOM   222
 
#define IDTB_TOC_NEXT   223
 
#define IDTB_TOC_PREV   224
 
#define HHN_FIRST   (0U-860U)
 
#define HHN_LAST   (0U-879U)
 
#define HHN_NAVCOMPLETE   HHN_FIRST
 
#define HHN_TRACK   (HHN_FIRST-1)
 
#define HHN_WINDOW_CREATE   (HHN_FIRST-2)
 
#define HH_MAX_TABS   19
 
#define HH_MAX_TABS_CUSTOM   (HH_TAB_CUSTOM_LAST-HH_TAB_CUSTOM_FIRST+1)
 
#define HH_FTS_DEFAULT_PROXIMITY   -1
 
#define HtmlHelp   WINELIB_NAME_AW(HtmlHelp)
 
#define ATOM_HTMLHELP_API_ANSI   (LPTSTR)14
 
#define ATOM_HTMLHELP_API_UNICODE   (LPTSTR)15
 

Typedefs

typedef struct tagHH_NOTIFY HH_NOTIFY
 
typedef struct tagHH_POPUPA HH_POPUPA
 
typedef struct tagHH_POPUPW HH_POPUPW
 
typedef struct tagHH_ALINKA HH_ALINKA
 
typedef struct tagHH_ALINKW HH_ALINKW
 
typedef struct tagHH_ENUM_IT HH_ENUM_IT
 
typedef struct tagHH_ENUM_ITPHH_ENUM_IT
 
typedef struct tagHH_ENUM_CAT HH_ENUM_CAT
 
typedef struct tagHH_ENUM_CATPHH_ENUM_CAT
 
typedef struct tagHH_SET_INFOTYPE HH_SET_INFOTYPE
 
typedef DWORD HH_INFOTYPE
 
typedef DWORDPHH_INFOTYPE
 
typedef struct tagHH_FTS_QUERYA HH_FTS_QUERYA
 
typedef struct tagHH_FTS_QUERYW HH_FTS_QUERYW
 
typedef struct tagHH_WINTYPEA HH_WINTYPEA
 
typedef struct tagHH_WINTYPEAPHH_WINTYPEA
 
typedef struct tagHH_WINTYPEW HH_WINTYPEW
 
typedef struct tagHH_WINTYPEWPHH_WINTYPEW
 
typedef struct tagHH_NTRACKA HH_NTRACKA
 
typedef struct tagHH_NTRACKW HH_NTRACKW
 
typedef enum tagHH_GPROPID HH_GPROPID
 

Enumerations

enum  {
  HHWIN_NAVTYPE_TOC , HHWIN_NAVTYPE_INDEX , HHWIN_NAVTYPE_SEARCH , HHWIN_NAVTYPE_FAVORITES ,
  HHWIN_NAVTYPE_HISTORY , HHWIN_NAVTYPE_AUTHOR , HHWIN_NAVTYPE_CUSTOM_FIRST = 11
}
 
enum  { IT_INCLUSIVE , IT_EXCLUSIVE , IT_HIDDEN }
 
enum  { HHWIN_NAVTAB_TOP , HHWIN_NAVTAB_LEFT , HHWIN_NAVTAB_BOTTOM }
 
enum  {
  HH_TAB_CONTENTS , HH_TAB_INDEX , HH_TAB_SEARCH , HH_TAB_FAVORITES ,
  HH_TAB_HISTORY , HH_TAB_AUTHOR , HH_TAB_CUSTOM_FIRST = 11 , HH_TAB_CUSTOM_LAST = HH_MAX_TABS
}
 
enum  {
  HHACT_TAB_CONTENTS , HHACT_TAB_INDEX , HHACT_TAB_SEARCH , HHACT_TAB_HISTORY ,
  HHACT_TAB_FAVORITES , HHACT_EXPAND , HHACT_CONTRACT , HHACT_BACK ,
  HHACT_FORWARD , HHACT_STOP , HHACT_REFRESH , HHACT_HOME ,
  HHACT_SYNC , HHACT_OPTIONS , HHACT_PRINT , HHACT_HIGHLIGHT ,
  HHACT_CUSTOMIZE , HHACT_JUMP1 , HHACT_JUMP2 , HHACT_ZOOM ,
  HHACT_TOC_NEXT , HHACT_TOC_PREV , HHACT_NOTES , HHACT_LAST_ENUM
}
 
enum  tagHH_GPROPID {
  HH_GPROPID_SINGLETHREAD = 1 , HH_GPROPID_TOOLBAR_MARGIN = 2 , HH_GPROPID_UI_LANGUAGE = 3 , HH_GPROPID_CURRENT_SUBSET = 4 ,
  HH_GPROPID_CONTENT_LANGUAGE = 5
}
 

Functions

HWND WINAPI HtmlHelpA (HWND, LPCSTR, UINT, DWORD_PTR)
 
HWND WINAPI HtmlHelpW (HWND, LPCWSTR, UINT, DWORD_PTR)
 

Macro Definition Documentation

◆ ATOM_HTMLHELP_API_ANSI

#define ATOM_HTMLHELP_API_ANSI   (LPTSTR)14

Definition at line 427 of file htmlhelp.h.

◆ ATOM_HTMLHELP_API_UNICODE

#define ATOM_HTMLHELP_API_UNICODE   (LPTSTR)15

Definition at line 428 of file htmlhelp.h.

◆ HH_ALINK_LOOKUP

#define HH_ALINK_LOOKUP   0x13

Definition at line 42 of file htmlhelp.h.

◆ HH_CLOSE_ALL

#define HH_CLOSE_ALL   0x12

Definition at line 41 of file htmlhelp.h.

◆ HH_DISPLAY_INDEX

#define HH_DISPLAY_INDEX   0x02

Definition at line 25 of file htmlhelp.h.

◆ HH_DISPLAY_SEARCH

#define HH_DISPLAY_SEARCH   0x03

Definition at line 26 of file htmlhelp.h.

◆ HH_DISPLAY_TEXT_POPUP

#define HH_DISPLAY_TEXT_POPUP   0x0E

Definition at line 37 of file htmlhelp.h.

◆ HH_DISPLAY_TOC

#define HH_DISPLAY_TOC   0x01

Definition at line 24 of file htmlhelp.h.

◆ HH_DISPLAY_TOPIC

#define HH_DISPLAY_TOPIC   0x00

Definition at line 22 of file htmlhelp.h.

◆ HH_ENUM_CATEGORY

#define HH_ENUM_CATEGORY   0x15

Definition at line 44 of file htmlhelp.h.

◆ HH_ENUM_CATEGORY_IT

#define HH_ENUM_CATEGORY_IT   0x16

Definition at line 45 of file htmlhelp.h.

◆ HH_ENUM_INFO_TYPE

#define HH_ENUM_INFO_TYPE   0x07

Definition at line 30 of file htmlhelp.h.

◆ HH_FTS_DEFAULT_PROXIMITY

#define HH_FTS_DEFAULT_PROXIMITY   -1

Definition at line 274 of file htmlhelp.h.

◆ HH_GET_LAST_ERROR

#define HH_GET_LAST_ERROR   0x14

Definition at line 43 of file htmlhelp.h.

◆ HH_GET_WIN_HANDLE

#define HH_GET_WIN_HANDLE   0x06

Definition at line 29 of file htmlhelp.h.

◆ HH_GET_WIN_TYPE

#define HH_GET_WIN_TYPE   0x05

Definition at line 28 of file htmlhelp.h.

◆ HH_HELP_CONTEXT

#define HH_HELP_CONTEXT   0x0F

Definition at line 38 of file htmlhelp.h.

◆ HH_HELP_FINDER

#define HH_HELP_FINDER   0x00

Definition at line 23 of file htmlhelp.h.

◆ HH_INITIALIZE

#define HH_INITIALIZE   0x1C

Definition at line 49 of file htmlhelp.h.

◆ HH_KEYWORD_LOOKUP

#define HH_KEYWORD_LOOKUP   0x0D

Definition at line 36 of file htmlhelp.h.

◆ HH_MAX_TABS

#define HH_MAX_TABS   19

Definition at line 260 of file htmlhelp.h.

◆ HH_MAX_TABS_CUSTOM

#define HH_MAX_TABS_CUSTOM   (HH_TAB_CUSTOM_LAST-HH_TAB_CUSTOM_FIRST+1)

Definition at line 273 of file htmlhelp.h.

◆ HH_PRETRANSLATEMESSAGE

#define HH_PRETRANSLATEMESSAGE   0xFD

Definition at line 52 of file htmlhelp.h.

◆ HH_RESERVED1

#define HH_RESERVED1   0x0A

Definition at line 33 of file htmlhelp.h.

◆ HH_RESERVED2

#define HH_RESERVED2   0x0B

Definition at line 34 of file htmlhelp.h.

◆ HH_RESERVED3

#define HH_RESERVED3   0x0C

Definition at line 35 of file htmlhelp.h.

◆ HH_RESET_IT_FILTER

#define HH_RESET_IT_FILTER   0x17

Definition at line 46 of file htmlhelp.h.

◆ HH_SAFE_DISPLAY_TOPIC

#define HH_SAFE_DISPLAY_TOPIC   0x20

Definition at line 51 of file htmlhelp.h.

◆ HH_SET_EXCLUSIVE_FILTER

#define HH_SET_EXCLUSIVE_FILTER   0x19

Definition at line 48 of file htmlhelp.h.

◆ HH_SET_GLOBAL_PROPERTY

#define HH_SET_GLOBAL_PROPERTY   0xFC

Definition at line 53 of file htmlhelp.h.

◆ HH_SET_INCLUSIVE_FILTER

#define HH_SET_INCLUSIVE_FILTER   0x18

Definition at line 47 of file htmlhelp.h.

◆ HH_SET_INFO_TYPE

#define HH_SET_INFO_TYPE   0x08

Definition at line 31 of file htmlhelp.h.

◆ HH_SET_WIN_TYPE

#define HH_SET_WIN_TYPE   0x04

Definition at line 27 of file htmlhelp.h.

◆ HH_SYNC

#define HH_SYNC   0x09

Definition at line 32 of file htmlhelp.h.

◆ HH_TP_HELP_CONTEXTMENU

#define HH_TP_HELP_CONTEXTMENU   0x10

Definition at line 39 of file htmlhelp.h.

◆ HH_TP_HELP_WM_HELP

#define HH_TP_HELP_WM_HELP   0x11

Definition at line 40 of file htmlhelp.h.

◆ HH_UNINITIALIZE

#define HH_UNINITIALIZE   0x1D

Definition at line 50 of file htmlhelp.h.

◆ HHN_FIRST

#define HHN_FIRST   (0U-860U)

Definition at line 150 of file htmlhelp.h.

◆ HHN_LAST

#define HHN_LAST   (0U-879U)

Definition at line 151 of file htmlhelp.h.

◆ HHN_NAVCOMPLETE

#define HHN_NAVCOMPLETE   HHN_FIRST

Definition at line 152 of file htmlhelp.h.

◆ HHN_TRACK

#define HHN_TRACK   (HHN_FIRST-1)

Definition at line 153 of file htmlhelp.h.

◆ HHN_WINDOW_CREATE

#define HHN_WINDOW_CREATE   (HHN_FIRST-2)

Definition at line 154 of file htmlhelp.h.

◆ HHWIN_BUTTON_BACK

#define HHWIN_BUTTON_BACK   0x00000004

Definition at line 100 of file htmlhelp.h.

◆ HHWIN_BUTTON_BROWSE_BCK

#define HHWIN_BUTTON_BROWSE_BCK   0x00000100

Definition at line 106 of file htmlhelp.h.

◆ HHWIN_BUTTON_BROWSE_FWD

#define HHWIN_BUTTON_BROWSE_FWD   0x00000080

Definition at line 105 of file htmlhelp.h.

◆ HHWIN_BUTTON_CONTENTS

#define HHWIN_BUTTON_CONTENTS   0x00000400

Definition at line 108 of file htmlhelp.h.

◆ HHWIN_BUTTON_EXPAND

#define HHWIN_BUTTON_EXPAND   0x00000002

Definition at line 99 of file htmlhelp.h.

◆ HHWIN_BUTTON_FAVORITES

#define HHWIN_BUTTON_FAVORITES   0x00020000

Definition at line 115 of file htmlhelp.h.

◆ HHWIN_BUTTON_FORWARD

#define HHWIN_BUTTON_FORWARD   0x00000008

Definition at line 101 of file htmlhelp.h.

◆ HHWIN_BUTTON_HISTORY

#define HHWIN_BUTTON_HISTORY   0x00010000

Definition at line 114 of file htmlhelp.h.

◆ HHWIN_BUTTON_HOME

#define HHWIN_BUTTON_HOME   0x00000040

Definition at line 104 of file htmlhelp.h.

◆ HHWIN_BUTTON_INDEX

#define HHWIN_BUTTON_INDEX   0x00004000

Definition at line 112 of file htmlhelp.h.

◆ HHWIN_BUTTON_JUMP1

#define HHWIN_BUTTON_JUMP1   0x00040000

Definition at line 116 of file htmlhelp.h.

◆ HHWIN_BUTTON_JUMP2

#define HHWIN_BUTTON_JUMP2   0x00080000

Definition at line 117 of file htmlhelp.h.

◆ HHWIN_BUTTON_NOTES

#define HHWIN_BUTTON_NOTES   0x00000200

Definition at line 107 of file htmlhelp.h.

◆ HHWIN_BUTTON_OPTIONS

#define HHWIN_BUTTON_OPTIONS   0x00001000

Definition at line 110 of file htmlhelp.h.

◆ HHWIN_BUTTON_PRINT

#define HHWIN_BUTTON_PRINT   0x00002000

Definition at line 111 of file htmlhelp.h.

◆ HHWIN_BUTTON_REFRESH

#define HHWIN_BUTTON_REFRESH   0x00000020

Definition at line 103 of file htmlhelp.h.

◆ HHWIN_BUTTON_SEARCH

#define HHWIN_BUTTON_SEARCH   0x00008000

Definition at line 113 of file htmlhelp.h.

◆ HHWIN_BUTTON_STOP

#define HHWIN_BUTTON_STOP   0x00000010

Definition at line 102 of file htmlhelp.h.

◆ HHWIN_BUTTON_SYNC

#define HHWIN_BUTTON_SYNC   0x00000800

Definition at line 109 of file htmlhelp.h.

◆ HHWIN_BUTTON_TOC_NEXT

#define HHWIN_BUTTON_TOC_NEXT   0x00200000

Definition at line 119 of file htmlhelp.h.

◆ HHWIN_BUTTON_TOC_PREV

#define HHWIN_BUTTON_TOC_PREV   0x00400000

Definition at line 120 of file htmlhelp.h.

◆ HHWIN_BUTTON_ZOOM

#define HHWIN_BUTTON_ZOOM   0x00100000

Definition at line 118 of file htmlhelp.h.

◆ HHWIN_DEF_BUTTONS

Definition at line 122 of file htmlhelp.h.

◆ HHWIN_PARAM_CUR_TAB

#define HHWIN_PARAM_CUR_TAB   0x00002000

Definition at line 97 of file htmlhelp.h.

◆ HHWIN_PARAM_EXPANSION

#define HHWIN_PARAM_EXPANSION   0x00000200

Definition at line 93 of file htmlhelp.h.

◆ HHWIN_PARAM_EXSTYLES

#define HHWIN_PARAM_EXSTYLES   0x00000008

Definition at line 87 of file htmlhelp.h.

◆ HHWIN_PARAM_HISTORY_COUNT

#define HHWIN_PARAM_HISTORY_COUNT   0x00001000

Definition at line 96 of file htmlhelp.h.

◆ HHWIN_PARAM_INFOTYPES

#define HHWIN_PARAM_INFOTYPES   0x00000080

Definition at line 91 of file htmlhelp.h.

◆ HHWIN_PARAM_NAV_WIDTH

#define HHWIN_PARAM_NAV_WIDTH   0x00000020

Definition at line 89 of file htmlhelp.h.

◆ HHWIN_PARAM_PROPERTIES

#define HHWIN_PARAM_PROPERTIES   0x00000002

Definition at line 85 of file htmlhelp.h.

◆ HHWIN_PARAM_RECT

#define HHWIN_PARAM_RECT   0x00000010

Definition at line 88 of file htmlhelp.h.

◆ HHWIN_PARAM_SHOWSTATE

#define HHWIN_PARAM_SHOWSTATE   0x00000040

Definition at line 90 of file htmlhelp.h.

◆ HHWIN_PARAM_STYLES

#define HHWIN_PARAM_STYLES   0x00000004

Definition at line 86 of file htmlhelp.h.

◆ HHWIN_PARAM_TABORDER

#define HHWIN_PARAM_TABORDER   0x00000800

Definition at line 95 of file htmlhelp.h.

◆ HHWIN_PARAM_TABPOS

#define HHWIN_PARAM_TABPOS   0x00000400

Definition at line 94 of file htmlhelp.h.

◆ HHWIN_PARAM_TB_FLAGS

#define HHWIN_PARAM_TB_FLAGS   0x00000100

Definition at line 92 of file htmlhelp.h.

◆ HHWIN_PROP_AUTO_SYNC

#define HHWIN_PROP_AUTO_SYNC   0x00000100

Definition at line 63 of file htmlhelp.h.

◆ HHWIN_PROP_CHANGE_TITLE

#define HHWIN_PROP_CHANGE_TITLE   0x00002000

Definition at line 68 of file htmlhelp.h.

◆ HHWIN_PROP_MENU

#define HHWIN_PROP_MENU   0x00010000

Definition at line 71 of file htmlhelp.h.

◆ HHWIN_PROP_NAV_ONLY_WIN

#define HHWIN_PROP_NAV_ONLY_WIN   0x00004000

Definition at line 69 of file htmlhelp.h.

◆ HHWIN_PROP_NO_TOOLBAR

#define HHWIN_PROP_NO_TOOLBAR   0x00008000

Definition at line 70 of file htmlhelp.h.

◆ HHWIN_PROP_NODEF_EXSTYLES

#define HHWIN_PROP_NODEF_EXSTYLES   0x00000010

Definition at line 59 of file htmlhelp.h.

◆ HHWIN_PROP_NODEF_STYLES

#define HHWIN_PROP_NODEF_STYLES   0x00000008

Definition at line 58 of file htmlhelp.h.

◆ HHWIN_PROP_NOTB_TEXT

#define HHWIN_PROP_NOTB_TEXT   0x00000040

Definition at line 61 of file htmlhelp.h.

◆ HHWIN_PROP_NOTITLEBAR

#define HHWIN_PROP_NOTITLEBAR   0x00000004

Definition at line 57 of file htmlhelp.h.

◆ HHWIN_PROP_ONTOP

#define HHWIN_PROP_ONTOP   0x00000002

Definition at line 56 of file htmlhelp.h.

◆ HHWIN_PROP_POST_QUIT

#define HHWIN_PROP_POST_QUIT   0x00000080

Definition at line 62 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_ADVSEARCH

#define HHWIN_PROP_TAB_ADVSEARCH   0x00020000

Definition at line 72 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_AUTOHIDESHOW

#define HHWIN_PROP_TAB_AUTOHIDESHOW   0x00000001

Definition at line 55 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM1

#define HHWIN_PROP_TAB_CUSTOM1   0x00080000

Definition at line 74 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM2

#define HHWIN_PROP_TAB_CUSTOM2   0x00100000

Definition at line 75 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM3

#define HHWIN_PROP_TAB_CUSTOM3   0x00200000

Definition at line 76 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM4

#define HHWIN_PROP_TAB_CUSTOM4   0x00400000

Definition at line 77 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM5

#define HHWIN_PROP_TAB_CUSTOM5   0x00800000

Definition at line 78 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM6

#define HHWIN_PROP_TAB_CUSTOM6   0x01000000

Definition at line 79 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM7

#define HHWIN_PROP_TAB_CUSTOM7   0x02000000

Definition at line 80 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM8

#define HHWIN_PROP_TAB_CUSTOM8   0x04000000

Definition at line 81 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_CUSTOM9

#define HHWIN_PROP_TAB_CUSTOM9   0x08000000

Definition at line 82 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_FAVORITES

#define HHWIN_PROP_TAB_FAVORITES   0x00001000

Definition at line 67 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_HISTORY

#define HHWIN_PROP_TAB_HISTORY   0x00000800

Definition at line 66 of file htmlhelp.h.

◆ HHWIN_PROP_TAB_SEARCH

#define HHWIN_PROP_TAB_SEARCH   0x00000400

Definition at line 65 of file htmlhelp.h.

◆ HHWIN_PROP_TRACKING

#define HHWIN_PROP_TRACKING   0x00000200

Definition at line 64 of file htmlhelp.h.

◆ HHWIN_PROP_TRI_PANE

#define HHWIN_PROP_TRI_PANE   0x00000020

Definition at line 60 of file htmlhelp.h.

◆ HHWIN_PROP_USER_POS

#define HHWIN_PROP_USER_POS   0x00040000

Definition at line 73 of file htmlhelp.h.

◆ HHWIN_TB_MARGIN

#define HHWIN_TB_MARGIN   0x10000000

Definition at line 83 of file htmlhelp.h.

◆ HtmlHelp

#define HtmlHelp   WINELIB_NAME_AW(HtmlHelp)

Definition at line 425 of file htmlhelp.h.

◆ IDTB_BACK

#define IDTB_BACK   204

Definition at line 129 of file htmlhelp.h.

◆ IDTB_BROWSE_BACK

#define IDTB_BROWSE_BACK   212

Definition at line 137 of file htmlhelp.h.

◆ IDTB_BROWSE_FWD

#define IDTB_BROWSE_FWD   211

Definition at line 136 of file htmlhelp.h.

◆ IDTB_CONTENTS

#define IDTB_CONTENTS   213

Definition at line 138 of file htmlhelp.h.

◆ IDTB_CONTRACT

#define IDTB_CONTRACT   201

Definition at line 126 of file htmlhelp.h.

◆ IDTB_CUSTOMIZE

#define IDTB_CUSTOMIZE   221

Definition at line 145 of file htmlhelp.h.

◆ IDTB_EXPAND

#define IDTB_EXPAND   200

Definition at line 125 of file htmlhelp.h.

◆ IDTB_FAVORITES

#define IDTB_FAVORITES   217

Definition at line 142 of file htmlhelp.h.

◆ IDTB_FORWARD

#define IDTB_FORWARD   209

Definition at line 134 of file htmlhelp.h.

◆ IDTB_HISTORY

#define IDTB_HISTORY   216

Definition at line 141 of file htmlhelp.h.

◆ IDTB_HOME

#define IDTB_HOME   205

Definition at line 130 of file htmlhelp.h.

◆ IDTB_INDEX

#define IDTB_INDEX   214

Definition at line 139 of file htmlhelp.h.

◆ IDTB_JUMP1

#define IDTB_JUMP1   218

Definition at line 143 of file htmlhelp.h.

◆ IDTB_JUMP2

#define IDTB_JUMP2   219

Definition at line 144 of file htmlhelp.h.

◆ IDTB_NOTES

#define IDTB_NOTES   210

Definition at line 135 of file htmlhelp.h.

◆ IDTB_OPTIONS

#define IDTB_OPTIONS   208

Definition at line 133 of file htmlhelp.h.

◆ IDTB_PRINT

#define IDTB_PRINT   207

Definition at line 132 of file htmlhelp.h.

◆ IDTB_REFRESH

#define IDTB_REFRESH   203

Definition at line 128 of file htmlhelp.h.

◆ IDTB_SEARCH

#define IDTB_SEARCH   215

Definition at line 140 of file htmlhelp.h.

◆ IDTB_STOP

#define IDTB_STOP   202

Definition at line 127 of file htmlhelp.h.

◆ IDTB_SYNC

#define IDTB_SYNC   206

Definition at line 131 of file htmlhelp.h.

◆ IDTB_TOC_NEXT

#define IDTB_TOC_NEXT   223

Definition at line 147 of file htmlhelp.h.

◆ IDTB_TOC_PREV

#define IDTB_TOC_PREV   224

Definition at line 148 of file htmlhelp.h.

◆ IDTB_ZOOM

#define IDTB_ZOOM   222

Definition at line 146 of file htmlhelp.h.

Typedef Documentation

◆ HH_ALINKA

◆ HH_ALINKW

◆ HH_ENUM_CAT

◆ HH_ENUM_IT

◆ HH_FTS_QUERYA

◆ HH_FTS_QUERYW

◆ HH_GPROPID

◆ HH_INFOTYPE

typedef DWORD HH_INFOTYPE

Definition at line 252 of file htmlhelp.h.

◆ HH_NOTIFY

◆ HH_NTRACKA

◆ HH_NTRACKW

◆ HH_POPUPA

◆ HH_POPUPW

◆ HH_SET_INFOTYPE

◆ HH_WINTYPEA

◆ HH_WINTYPEW

◆ PHH_ENUM_CAT

◆ PHH_ENUM_IT

◆ PHH_INFOTYPE

typedef DWORD * PHH_INFOTYPE

Definition at line 252 of file htmlhelp.h.

◆ PHH_WINTYPEA

◆ PHH_WINTYPEW

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
HHWIN_NAVTYPE_TOC 
HHWIN_NAVTYPE_INDEX 
HHWIN_NAVTYPE_SEARCH 
HHWIN_NAVTYPE_FAVORITES 
HHWIN_NAVTYPE_HISTORY 
HHWIN_NAVTYPE_AUTHOR 
HHWIN_NAVTYPE_CUSTOM_FIRST 

Definition at line 216 of file htmlhelp.h.

216 {
224};
@ HHWIN_NAVTYPE_TOC
Definition: htmlhelp.h:217
@ HHWIN_NAVTYPE_INDEX
Definition: htmlhelp.h:218
@ HHWIN_NAVTYPE_FAVORITES
Definition: htmlhelp.h:220
@ HHWIN_NAVTYPE_AUTHOR
Definition: htmlhelp.h:222
@ HHWIN_NAVTYPE_SEARCH
Definition: htmlhelp.h:219
@ HHWIN_NAVTYPE_CUSTOM_FIRST
Definition: htmlhelp.h:223
@ HHWIN_NAVTYPE_HISTORY
Definition: htmlhelp.h:221

◆ anonymous enum

anonymous enum
Enumerator
IT_INCLUSIVE 
IT_EXCLUSIVE 
IT_HIDDEN 

Definition at line 226 of file htmlhelp.h.

226 {
230};
@ IT_HIDDEN
Definition: htmlhelp.h:229
@ IT_EXCLUSIVE
Definition: htmlhelp.h:228
@ IT_INCLUSIVE
Definition: htmlhelp.h:227

◆ anonymous enum

anonymous enum
Enumerator
HHWIN_NAVTAB_TOP 
HHWIN_NAVTAB_LEFT 
HHWIN_NAVTAB_BOTTOM 

Definition at line 254 of file htmlhelp.h.

254 {
258};
@ HHWIN_NAVTAB_LEFT
Definition: htmlhelp.h:256
@ HHWIN_NAVTAB_BOTTOM
Definition: htmlhelp.h:257
@ HHWIN_NAVTAB_TOP
Definition: htmlhelp.h:255

◆ anonymous enum

anonymous enum
Enumerator
HH_TAB_CONTENTS 
HH_TAB_INDEX 
HH_TAB_SEARCH 
HH_TAB_FAVORITES 
HH_TAB_HISTORY 
HH_TAB_AUTHOR 
HH_TAB_CUSTOM_FIRST 
HH_TAB_CUSTOM_LAST 

Definition at line 262 of file htmlhelp.h.

262 {
271};
#define HH_MAX_TABS
Definition: htmlhelp.h:260
@ HH_TAB_CUSTOM_LAST
Definition: htmlhelp.h:270
@ HH_TAB_SEARCH
Definition: htmlhelp.h:265
@ HH_TAB_HISTORY
Definition: htmlhelp.h:267
@ HH_TAB_CONTENTS
Definition: htmlhelp.h:263
@ HH_TAB_CUSTOM_FIRST
Definition: htmlhelp.h:269
@ HH_TAB_INDEX
Definition: htmlhelp.h:264
@ HH_TAB_FAVORITES
Definition: htmlhelp.h:266
@ HH_TAB_AUTHOR
Definition: htmlhelp.h:268

◆ anonymous enum

anonymous enum
Enumerator
HHACT_TAB_CONTENTS 
HHACT_TAB_INDEX 
HHACT_TAB_SEARCH 
HHACT_TAB_HISTORY 
HHACT_TAB_FAVORITES 
HHACT_EXPAND 
HHACT_CONTRACT 
HHACT_BACK 
HHACT_FORWARD 
HHACT_STOP 
HHACT_REFRESH 
HHACT_HOME 
HHACT_SYNC 
HHACT_OPTIONS 
HHACT_PRINT 
HHACT_HIGHLIGHT 
HHACT_CUSTOMIZE 
HHACT_JUMP1 
HHACT_JUMP2 
HHACT_ZOOM 
HHACT_TOC_NEXT 
HHACT_TOC_PREV 
HHACT_NOTES 
HHACT_LAST_ENUM 

Definition at line 380 of file htmlhelp.h.

380 {
405};
@ HHACT_CUSTOMIZE
Definition: htmlhelp.h:397
@ HHACT_JUMP1
Definition: htmlhelp.h:398
@ HHACT_REFRESH
Definition: htmlhelp.h:391
@ HHACT_PRINT
Definition: htmlhelp.h:395
@ HHACT_TAB_CONTENTS
Definition: htmlhelp.h:381
@ HHACT_TOC_PREV
Definition: htmlhelp.h:402
@ HHACT_TAB_FAVORITES
Definition: htmlhelp.h:385
@ HHACT_TOC_NEXT
Definition: htmlhelp.h:401
@ HHACT_NOTES
Definition: htmlhelp.h:403
@ HHACT_LAST_ENUM
Definition: htmlhelp.h:404
@ HHACT_TAB_HISTORY
Definition: htmlhelp.h:384
@ HHACT_JUMP2
Definition: htmlhelp.h:399
@ HHACT_OPTIONS
Definition: htmlhelp.h:394
@ HHACT_CONTRACT
Definition: htmlhelp.h:387
@ HHACT_ZOOM
Definition: htmlhelp.h:400
@ HHACT_TAB_INDEX
Definition: htmlhelp.h:382
@ HHACT_FORWARD
Definition: htmlhelp.h:389
@ HHACT_STOP
Definition: htmlhelp.h:390
@ HHACT_EXPAND
Definition: htmlhelp.h:386
@ HHACT_TAB_SEARCH
Definition: htmlhelp.h:383
@ HHACT_SYNC
Definition: htmlhelp.h:393
@ HHACT_BACK
Definition: htmlhelp.h:388
@ HHACT_HOME
Definition: htmlhelp.h:392
@ HHACT_HIGHLIGHT
Definition: htmlhelp.h:396

◆ tagHH_GPROPID

Enumerator
HH_GPROPID_SINGLETHREAD 
HH_GPROPID_TOOLBAR_MARGIN 
HH_GPROPID_UI_LANGUAGE 
HH_GPROPID_CURRENT_SUBSET 
HH_GPROPID_CONTENT_LANGUAGE 

Definition at line 430 of file htmlhelp.h.

430 {
436} HH_GPROPID;
enum tagHH_GPROPID HH_GPROPID
@ HH_GPROPID_UI_LANGUAGE
Definition: htmlhelp.h:433
@ HH_GPROPID_TOOLBAR_MARGIN
Definition: htmlhelp.h:432
@ HH_GPROPID_SINGLETHREAD
Definition: htmlhelp.h:431
@ HH_GPROPID_CURRENT_SUBSET
Definition: htmlhelp.h:434
@ HH_GPROPID_CONTENT_LANGUAGE
Definition: htmlhelp.h:435

Function Documentation

◆ HtmlHelpA()

HWND WINAPI HtmlHelpA ( HWND  caller,
LPCSTR  filename,
UINT  command,
DWORD_PTR  data 
)

Definition at line 421 of file hhctrl.c.

422{
423 WCHAR *wfile = strdupAtoW( filename );
424 HWND result = 0;
425
426 if (data)
427 {
428 switch(command)
429 {
430 case HH_ALINK_LOOKUP:
435 case HH_SYNC:
436 FIXME("structures not handled yet\n");
437 break;
438
439 case HH_SET_WIN_TYPE:
440 {
441 struct wintype_stringsW stringsW;
442 HH_WINTYPEW wdata;
443
444 wintypeAtoW((HH_WINTYPEA *)data, &wdata, &stringsW);
445 result = HtmlHelpW( caller, wfile, command, (DWORD_PTR)&wdata );
446 wintype_stringsW_free(&stringsW);
447 goto done;
448 }
449 case HH_GET_WIN_TYPE:
450 {
451 HH_WINTYPEW wdata;
452 HHInfo *info;
453
454 result = HtmlHelpW( caller, wfile, command, (DWORD_PTR)&wdata );
455 if (!wdata.pszType) break;
456 info = find_window(wdata.pszType);
457 if (!info) break;
458 wintype_stringsA_free(&info->stringsA);
459 wintypeWtoA(&wdata, (HH_WINTYPEA *)data, &info->stringsA);
460 goto done;
461 }
462
463 case HH_DISPLAY_INDEX:
464 case HH_DISPLAY_TOPIC:
465 case HH_DISPLAY_TOC:
468 {
469 WCHAR *wdata = strdupAtoW( (const char *)data );
470 result = HtmlHelpW( caller, wfile, command, (DWORD_PTR)wdata );
471 heap_free(wdata);
472 goto done;
473 }
474
475 case HH_CLOSE_ALL:
476 case HH_HELP_CONTEXT:
477 case HH_INITIALIZE:
481 case HH_UNINITIALIZE:
482 /* either scalar or pointer to scalar - do nothing */
483 break;
484
485 default:
486 FIXME("Unknown command: %s (%d)\n", command_to_string(command), command);
487 break;
488 }
489 }
490
491 result = HtmlHelpW( caller, wfile, command, data );
492done:
493 heap_free(wfile);
494 return result;
495}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
#define FIXME(fmt,...)
Definition: precomp.h:53
static WCHAR * strdupAtoW(const char *str)
Definition: main.c:65
void wintype_stringsW_free(struct wintype_stringsW *stringsW)
Definition: help.c:1773
void wintype_stringsA_free(struct wintype_stringsA *stringsA)
Definition: help.c:1787
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint64EXT * result
Definition: glext.h:11304
static void wintypeWtoA(const HH_WINTYPEW *wdata, HH_WINTYPEA *data, struct wintype_stringsA *stringsA)
Definition: hhctrl.c:401
HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR data)
Definition: hhctrl.c:157
static const char * command_to_string(UINT command)
Definition: hhctrl.c:59
static void wintypeAtoW(const HH_WINTYPEA *data, HH_WINTYPEW *wdata, struct wintype_stringsW *stringsW)
Definition: hhctrl.c:384
#define HH_DISPLAY_INDEX
Definition: htmlhelp.h:25
#define HH_UNINITIALIZE
Definition: htmlhelp.h:50
#define HH_SET_WIN_TYPE
Definition: htmlhelp.h:27
#define HH_DISPLAY_TOPIC
Definition: htmlhelp.h:22
#define HH_GET_LAST_ERROR
Definition: htmlhelp.h:43
#define HH_TP_HELP_WM_HELP
Definition: htmlhelp.h:40
#define HH_PRETRANSLATEMESSAGE
Definition: htmlhelp.h:52
#define HH_SAFE_DISPLAY_TOPIC
Definition: htmlhelp.h:51
#define HH_CLOSE_ALL
Definition: htmlhelp.h:41
#define HH_HELP_CONTEXT
Definition: htmlhelp.h:38
#define HH_DISPLAY_TEXT_POPUP
Definition: htmlhelp.h:37
#define HH_DISPLAY_SEARCH
Definition: htmlhelp.h:26
#define HH_DISPLAY_TOC
Definition: htmlhelp.h:24
#define HH_ALINK_LOOKUP
Definition: htmlhelp.h:42
#define HH_GET_WIN_TYPE
Definition: htmlhelp.h:28
#define HH_KEYWORD_LOOKUP
Definition: htmlhelp.h:36
#define HH_TP_HELP_CONTEXTMENU
Definition: htmlhelp.h:39
#define HH_INITIALIZE
Definition: htmlhelp.h:49
#define HH_SYNC
Definition: htmlhelp.h:32
#define HH_GET_WIN_HANDLE
Definition: htmlhelp.h:29
const char * filename
Definition: ioapi.h:137
Definition: hhctrl.h:185
LPCWSTR pszType
Definition: htmlhelp.h:342
uint32_t DWORD_PTR
Definition: typedefs.h:65
static HWND find_window()
Definition: wclickat.c:251
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by HtmlHelp_Start().

◆ HtmlHelpW()

HWND WINAPI HtmlHelpW ( HWND  caller,
LPCWSTR  filename,
UINT  command,
DWORD_PTR  data 
)

Definition at line 157 of file hhctrl.c.

158{
160
161 TRACE("(%p, %s, command=%s, data=%lx)\n",
162 caller, debugstr_w( filename ),
164
165 switch (command)
166 {
167 case HH_DISPLAY_TOPIC:
168 case HH_DISPLAY_TOC:
169 case HH_DISPLAY_INDEX:
170 case HH_DISPLAY_SEARCH:{
171 BOOL res;
172 NMHDR nmhdr;
173 HHInfo *info = NULL;
174 WCHAR *window = NULL;
175 const WCHAR *index = NULL;
176 WCHAR *default_index = NULL;
177 int tab_index = TAB_CONTENTS;
178
179 if (!filename)
180 return NULL;
181
182 if (!resolve_filename(filename, fullname, MAX_PATH, &default_index, &window))
183 {
184 WARN("can't find %s\n", debugstr_w(filename));
185 return 0;
186 }
187 index = default_index;
188
189 if (window)
191
193 if(!info)
194 {
195 heap_free(default_index);
197 return NULL;
198 }
199
200 if(!index)
201 index = info->WinType.pszFile;
202 if(!info->WinType.pszType)
203 info->WinType.pszType = info->stringsW.pszType = window;
204 else
206
207 /* called to load a specified topic */
208 switch(command)
209 {
210 case HH_DISPLAY_TOPIC:
211 case HH_DISPLAY_TOC:
212 if (data)
213 {
214 static const WCHAR delimW[] = {':',':',0};
215 const WCHAR *i = (const WCHAR *)data;
216
217 index = wcsstr(i, delimW);
218 if(index)
219 {
220 if(memcmp(info->pCHMInfo->szFile, i, index-i))
221 FIXME("Opening a CHM file in the context of another is not supported.\n");
222 index += lstrlenW(delimW);
223 }
224 else
225 index = i;
226 }
227 break;
228 }
229
230 res = NavigateToChm(info, info->pCHMInfo->szFile, index);
231 heap_free(default_index);
232
233 if(!res)
234 {
236 return NULL;
237 }
238
239 switch(command)
240 {
241 case HH_DISPLAY_TOPIC:
242 case HH_DISPLAY_TOC:
243 tab_index = TAB_CONTENTS;
244 break;
245 case HH_DISPLAY_INDEX:
246 tab_index = TAB_INDEX;
247 if (data)
248 FIXME("Should select keyword '%s'.\n", debugstr_w((WCHAR *)data));
249 break;
251 tab_index = TAB_SEARCH;
252 if (data)
253 FIXME("Should display search specified by HH_FTS_QUERY structure.\n");
254 break;
255 }
256 /* open the requested tab */
257 memset(&nmhdr, 0, sizeof(nmhdr));
258 nmhdr.code = TCN_SELCHANGE;
259 SendMessageW(info->hwndTabCtrl, TCM_SETCURSEL, (WPARAM)info->tabs[tab_index].id, 0);
260 SendMessageW(info->WinType.hwndNavigation, WM_NOTIFY, 0, (LPARAM)&nmhdr);
261
262 return info->WinType.hwndHelp;
263 }
264 case HH_HELP_CONTEXT: {
265 WCHAR *window = NULL;
266 HHInfo *info = NULL;
267 LPWSTR url;
268
269 if (!filename)
270 return NULL;
271
273 {
274 WARN("can't find %s\n", debugstr_w(filename));
275 return 0;
276 }
277
278 if (window)
280
282 if(!info)
283 {
285 return NULL;
286 }
287
288 if(!info->WinType.pszType)
289 info->WinType.pszType = info->stringsW.pszType = window;
290 else
292
293 url = FindContextAlias(info->pCHMInfo, data);
294 if(!url)
295 {
296 if(!data) /* there may legitimately be no context alias for id 0 */
297 return info->WinType.hwndHelp;
299 return NULL;
300 }
301
303 heap_free(url);
304 return info->WinType.hwndHelp;
305 }
307 static BOOL warned = FALSE;
308
309 if (!warned)
310 {
311 FIXME("HH_PRETRANSLATEMESSAGE unimplemented\n");
312 warned = TRUE;
313 }
314 return 0;
315 }
316 case HH_CLOSE_ALL: {
317 HHInfo *info, *next;
318
320 {
321 TRACE("Destroying window %s.\n", debugstr_w(info->WinType.pszType));
323 }
324 return 0;
325 }
326 case HH_SET_WIN_TYPE: {
327 HH_WINTYPEW *wintype = (HH_WINTYPEW *)data;
328 WCHAR *window = NULL;
329 HHInfo *info = NULL;
330
331 if (!filename && wintype->pszType)
332 window = strdupW(wintype->pszType);
334 {
335 WARN("can't find window name: %s\n", debugstr_w(filename));
336 return 0;
337 }
339 if (!info)
340 {
341 info = heap_alloc_zero(sizeof(HHInfo));
342 info->WinType.pszType = info->stringsW.pszType = window;
343 list_add_tail(&window_list, &info->entry);
344 }
345 else
347
348 TRACE("Changing WINTYPE, fsValidMembers=0x%x\n", wintype->fsValidMembers);
349
350 MergeChmProperties(wintype, info, TRUE);
352 return 0;
353 }
354 case HH_GET_WIN_TYPE: {
355 HH_WINTYPEW *wintype = (HH_WINTYPEW *)data;
356 WCHAR *window = NULL;
357 HHInfo *info = NULL;
358
360 {
361 WARN("can't find window name: %s\n", debugstr_w(filename));
362 return 0;
363 }
365 if (!info)
366 {
367 WARN("Could not find window named %s.\n", debugstr_w(window));
369 return (HWND)~0;
370 }
371
372 TRACE("Retrieving WINTYPE for %s.\n", debugstr_w(window));
373 *wintype = info->WinType;
375 return 0;
376 }
377 default:
378 FIXME("HH case %s not handled.\n", command_to_string( command ));
379 }
380
381 return 0;
382}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
Definition: utclib.c:112
static WCHAR * strdupW(const WCHAR *src)
Definition: main.c:92
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
Definition: list.h:83
#define WARN(fmt,...)
Definition: precomp.h:61
LPWSTR FindContextAlias(CHMInfo *chm, DWORD index)
Definition: chm.c:175
void MergeChmProperties(HH_WINTYPEW *src, HHInfo *info, BOOL override)
Definition: chm.c:256
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define MAX_PATH
Definition: compat.h:34
#define lstrlenW
Definition: compat.h:750
HHInfo * CreateHelpViewer(HHInfo *info, LPCWSTR filename, HWND caller)
Definition: help.c:1831
struct list window_list
Definition: help.c:51
void ReleaseHelpViewer(HHInfo *info)
Definition: help.c:1802
BOOL NavigateToChm(HHInfo *info, LPCWSTR file, LPCWSTR index)
Definition: help.c:257
void UpdateHelpWindow(HHInfo *info)
Definition: help.c:1563
BOOL NavigateToUrl(HHInfo *info, LPCWSTR surl)
Definition: help.c:213
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint res
Definition: glext.h:9613
GLuint index
Definition: glext.h:6031
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static BOOL resolve_filename(const WCHAR *env_filename, WCHAR *fullname, DWORD buflen, WCHAR **index, WCHAR **window)
Definition: hhctrl.c:100
#define TAB_CONTENTS
Definition: hhctrl.h:116
#define TAB_INDEX
Definition: hhctrl.h:117
#define TAB_SEARCH
Definition: hhctrl.h:118
_CONST_RETURN wchar_t *__cdecl wcsstr(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_SubStr)
uint32_t entry
Definition: isohybrid.c:63
#define debugstr_w
Definition: kernel32.h:32
static const WCHAR url[]
Definition: encode.c:1432
const char * fullname
Definition: shader.c:1766
static IHTMLWindow2 * window
Definition: events.c:77
#define TCN_SELCHANGE
Definition: commctrl.h:4137
#define TCM_SETCURSEL
Definition: commctrl.h:4070
static unsigned __int64 next
Definition: rand_nt.c:6
#define WM_NOTIFY
Definition: richedit.h:61
#define LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, list, type, field)
Definition: list.h:204
#define memset(x, y, z)
Definition: compat.h:39
#define TRACE(s)
Definition: solgame.cpp:4
DWORD fsValidMembers
Definition: htmlhelp.h:343
UINT code
Definition: winuser.h:3162
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by doWinMain(), HtmlHelp_Start(), HtmlHelpA(), and OnCommand().