Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f1b7bb4e
Commit
f1b7bb4e
authored
Sep 27, 2011
by
Erich Hoover
Committed by
Alexandre Julliard
Sep 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Open a specific topic when requested.
parent
97323799
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+15
-5
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
f1b7bb4e
...
...
@@ -166,15 +166,17 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
NMHDR
nmhdr
;
const
WCHAR
*
index
=
NULL
;
int
tab_index
=
TAB_CONTENTS
;
const
WCHAR
*
default_index
=
NULL
;
if
(
!
filename
)
return
NULL
;
if
(
!
resolve_filename
(
filename
,
fullname
,
MAX_PATH
,
&
index
,
NULL
))
if
(
!
resolve_filename
(
filename
,
fullname
,
MAX_PATH
,
&
default_
index
,
NULL
))
{
WARN
(
"can't find %s
\n
"
,
debugstr_w
(
filename
));
return
0
;
}
index
=
default_index
;
info
=
CreateHelpViewer
(
fullname
);
if
(
!
info
)
...
...
@@ -183,10 +185,20 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
if
(
!
index
)
index
=
info
->
WinType
.
pszFile
;
/* called to load a specified topic */
switch
(
command
)
{
case
HH_DISPLAY_TOPIC
:
case
HH_DISPLAY_TOC
:
if
(
data
)
index
=
(
const
WCHAR
*
)
data
;
break
;
}
res
=
NavigateToChm
(
info
,
info
->
pCHMInfo
->
szFile
,
index
);
if
(
index
!=
info
->
WinType
.
pszFile
)
heap_free
((
WCHAR
*
)
index
);
if
(
default_index
)
heap_free
((
WCHAR
*
)
default_
index
);
if
(
!
res
)
{
...
...
@@ -199,8 +211,6 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
case
HH_DISPLAY_TOPIC
:
case
HH_DISPLAY_TOC
:
tab_index
=
TAB_CONTENTS
;
if
(
data
)
FIXME
(
"Should jump to topic '%s'.
\n
"
,
debugstr_w
((
WCHAR
*
)
data
));
break
;
case
HH_DISPLAY_INDEX
:
tab_index
=
TAB_INDEX
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment