ReactOS 0.4.17-dev-806-gffa4164
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 428 of file hhctrl.c.

429{
430 WCHAR *wfile = strdupAtoW( filename );
431 HWND result = 0;
432
433 if (data)
434 {
435 switch(command)
436 {
437 case HH_ALINK_LOOKUP:
442 case HH_SYNC:
443 FIXME("structures not handled yet\n");
444 break;
445
446 case HH_SET_WIN_TYPE:
447 {
448 struct wintype_stringsW stringsW;
449 HH_WINTYPEW wdata;
450
451 wintypeAtoW((HH_WINTYPEA *)data, &wdata, &stringsW);
452 result = HtmlHelpW( caller, wfile, command, (DWORD_PTR)&wdata );
453 wintype_stringsW_free(&stringsW);
454 goto done;
455 }
456 case HH_GET_WIN_TYPE:
457 {
458 HH_WINTYPEW wdata;
459 HHInfo *info;
460
461 result = HtmlHelpW( caller, wfile, command, (DWORD_PTR)&wdata );
462 if (!wdata.pszType) break;
463 info = find_window(wdata.pszType);
464 if (!info) break;
465 wintype_stringsA_free(&info->stringsA);
466 wintypeWtoA(&wdata, (HH_WINTYPEA *)data, &info->stringsA);
467 goto done;
468 }
469
470 case HH_DISPLAY_INDEX:
471 case HH_DISPLAY_TOPIC:
472 case HH_DISPLAY_TOC:
475 {
476 WCHAR *wdata = strdupAtoW( (const char *)data );
477 result = HtmlHelpW( caller, wfile, command, (DWORD_PTR)wdata );
478 free(wdata);
479 goto done;
480 }
481
482 case HH_CLOSE_ALL:
483 case HH_HELP_CONTEXT:
484 case HH_INITIALIZE:
488 case HH_UNINITIALIZE:
489 /* either scalar or pointer to scalar - do nothing */
490 break;
491
492 default:
493 FIXME("Unknown command: %s (%d)\n", command_to_string(command), command);
494 break;
495 }
496 }
497
498 result = HtmlHelpW( caller, wfile, command, data );
499done:
500 free(wfile);
501 return result;
502}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define free
Definition: debug_ros.c:5
static WCHAR * strdupAtoW(const char *str)
Definition: main.c:61
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:408
HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR data)
Definition: hhctrl.c:164
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:391
#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
short WCHAR
Definition: pedump.c:58
Definition: hhctrl.h:184
LPCWSTR pszType
Definition: htmlhelp.h:342
uint32_t DWORD_PTR
Definition: typedefs.h:65
static HWND find_window()
Definition: wclickat.c:251

Referenced by HtmlHelp_Start().

◆ HtmlHelpW()

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

Definition at line 164 of file hhctrl.c.

165{
167
168 TRACE("(%p, %s, command=%s, data=%Ix)\n",
169 caller, debugstr_w( filename ),
171
172 switch (command)
173 {
174 case HH_DISPLAY_TOPIC:
175 case HH_DISPLAY_TOC:
176 case HH_DISPLAY_INDEX:
177 case HH_DISPLAY_SEARCH:{
178 BOOL res;
179 NMHDR nmhdr;
180 HHInfo *info = NULL;
181 WCHAR *window = NULL;
182 const WCHAR *index = NULL;
183 WCHAR *default_index = NULL;
184 int tab_index = TAB_CONTENTS;
185
186 if (!filename)
187 return NULL;
188
189 if (!resolve_filename(filename, fullname, MAX_PATH, &default_index, &window))
190 {
191 WARN("can't find %s\n", debugstr_w(filename));
192 return 0;
193 }
194 index = default_index;
195
196 if (window)
198
200 if(!info)
201 {
202 free(default_index);
203 free(window);
204 return NULL;
205 }
206
207 if(!index)
208 index = info->WinType.pszFile;
209 if(!info->WinType.pszType)
210 info->WinType.pszType = info->stringsW.pszType = window;
211 else
212 free(window);
213
214 /* called to load a specified topic */
215 switch(command)
216 {
217 case HH_DISPLAY_TOPIC:
218 case HH_DISPLAY_TOC:
219 if (data)
220 {
221 static const WCHAR delimW[] = {':',':',0};
222 const WCHAR *i = (const WCHAR *)data;
223
224 index = wcsstr(i, delimW);
225 if(index)
226 {
227 if(memcmp(info->pCHMInfo->szFile, i, index-i))
228 FIXME("Opening a CHM file in the context of another is not supported.\n");
229 index += lstrlenW(delimW);
230 }
231 else
232 index = i;
233 }
234 break;
235 }
236
237 res = NavigateToChm(info, info->pCHMInfo->szFile, index);
238 free(default_index);
239
240 if(!res)
241 {
243 return NULL;
244 }
245
246 switch(command)
247 {
248 case HH_DISPLAY_TOPIC:
249 case HH_DISPLAY_TOC:
250 tab_index = TAB_CONTENTS;
251 break;
252 case HH_DISPLAY_INDEX:
253 tab_index = TAB_INDEX;
254 if (data)
255 FIXME("Should select keyword '%s'.\n", debugstr_w((WCHAR *)data));
256 break;
258 tab_index = TAB_SEARCH;
259 if (data)
260 FIXME("Should display search specified by HH_FTS_QUERY structure.\n");
261 break;
262 }
263 /* open the requested tab */
264 memset(&nmhdr, 0, sizeof(nmhdr));
265 nmhdr.code = TCN_SELCHANGE;
266 SendMessageW(info->hwndTabCtrl, TCM_SETCURSEL, (WPARAM)info->tabs[tab_index].id, 0);
267 SendMessageW(info->WinType.hwndNavigation, WM_NOTIFY, 0, (LPARAM)&nmhdr);
268
269 return info->WinType.hwndHelp;
270 }
271 case HH_HELP_CONTEXT: {
272 WCHAR *window = NULL;
273 HHInfo *info = NULL;
274 LPWSTR url;
275
276 if (!filename)
277 return NULL;
278
280 {
281 WARN("can't find %s\n", debugstr_w(filename));
282 return 0;
283 }
284
285 if (window)
287
289 if(!info)
290 {
291 free(window);
292 return NULL;
293 }
294
295 if(!info->WinType.pszType)
296 info->WinType.pszType = info->stringsW.pszType = window;
297 else
298 free(window);
299
300 url = FindContextAlias(info->pCHMInfo, data);
301 if(!url)
302 {
303 if(!data) /* there may legitimately be no context alias for id 0 */
304 return info->WinType.hwndHelp;
306 return NULL;
307 }
308
310 free(url);
311 return info->WinType.hwndHelp;
312 }
314 static BOOL warned = FALSE;
315
316 if (!warned)
317 {
318 FIXME("HH_PRETRANSLATEMESSAGE unimplemented\n");
319 warned = TRUE;
320 }
321 return 0;
322 }
323 case HH_CLOSE_ALL: {
324 HHInfo *info, *next;
325
327 {
328 TRACE("Destroying window %s.\n", debugstr_w(info->WinType.pszType));
330 }
331 return 0;
332 }
333 case HH_SET_WIN_TYPE: {
334 HH_WINTYPEW *wintype = (HH_WINTYPEW *)data;
335 WCHAR *window = NULL;
336 HHInfo *info = NULL;
337
338 if (!filename && wintype->pszType)
339 window = wcsdup(wintype->pszType);
341 {
342 WARN("can't find window name: %s\n", debugstr_w(filename));
343 return 0;
344 }
346 if (!info)
347 {
348 info = calloc(1, sizeof(HHInfo));
349 info->WinType.pszType = info->stringsW.pszType = window;
350 list_add_tail(&window_list, &info->entry);
351 }
352 else
353 free(window);
354
355 TRACE("Changing WINTYPE, fsValidMembers=0x%lx\n", wintype->fsValidMembers);
356
357 MergeChmProperties(wintype, info, TRUE);
359 return 0;
360 }
361 case HH_GET_WIN_TYPE: {
362 HH_WINTYPEW *wintype = (HH_WINTYPEW *)data;
363 WCHAR *window = NULL;
364 HHInfo *info = NULL;
365
367 {
368 WARN("can't find window name: %s\n", debugstr_w(filename));
369 return 0;
370 }
372 if (!info)
373 {
374 WARN("Could not find window named %s.\n", debugstr_w(window));
375 free(window);
376 return (HWND)~0;
377 }
378
379 TRACE("Retrieving WINTYPE for %s.\n", debugstr_w(window));
380 *wintype = info->WinType;
381 free(window);
382 return 0;
383 }
384 default:
385 FIXME("HH case %s not handled.\n", command_to_string( command ));
386 }
387
388 return 0;
389}
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:188
void MergeChmProperties(HH_WINTYPEW *src, HHInfo *info, BOOL override)
Definition: chm.c:269
#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
_ACRTIMP int __cdecl memcmp(const void *, const void *, size_t)
Definition: string.c:2807
_ACRTIMP wchar_t *__cdecl wcsstr(const wchar_t *, const wchar_t *)
Definition: wcs.c:2998
static wchar_t * wcsdup(const wchar_t *str)
Definition: string.h:94
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:115
#define TAB_INDEX
Definition: hhctrl.h:116
#define TAB_SEARCH
Definition: hhctrl.h:117
uint32_t entry
Definition: isohybrid.c:63
#define debugstr_w
Definition: kernel32.h:32
LONG_PTR LPARAM
Definition: minwindef.h:175
UINT_PTR WPARAM
Definition: minwindef.h:174
static const WCHAR url[]
Definition: encode.c:1384
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 calloc
Definition: rosglue.h:14
#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:3267
uint16_t * LPWSTR
Definition: typedefs.h:56
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

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