Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
317f26be
Commit
317f26be
authored
Oct 03, 2012
by
Erich Hoover
Committed by
Alexandre Julliard
Oct 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Add support for specifying window names with HH_HELP_CONTEXT.
parent
d1c36342
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+15
-3
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
317f26be
...
@@ -244,21 +244,33 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
...
@@ -244,21 +244,33 @@ HWND WINAPI HtmlHelpW(HWND caller, LPCWSTR filename, UINT command, DWORD_PTR dat
return
info
->
WinType
.
hwndHelp
;
return
info
->
WinType
.
hwndHelp
;
}
}
case
HH_HELP_CONTEXT
:
{
case
HH_HELP_CONTEXT
:
{
HHInfo
*
info
;
WCHAR
*
window
=
NULL
;
HHInfo
*
info
=
NULL
;
LPWSTR
url
;
LPWSTR
url
;
if
(
!
filename
)
if
(
!
filename
)
return
NULL
;
return
NULL
;
if
(
!
resolve_filename
(
filename
,
fullname
,
MAX_PATH
,
NULL
,
NULL
))
if
(
!
resolve_filename
(
filename
,
fullname
,
MAX_PATH
,
NULL
,
&
window
))
{
{
WARN
(
"can't find %s
\n
"
,
debugstr_w
(
filename
));
WARN
(
"can't find %s
\n
"
,
debugstr_w
(
filename
));
return
0
;
return
0
;
}
}
info
=
CreateHelpViewer
(
NULL
,
fullname
,
caller
);
if
(
window
)
info
=
find_window
(
window
);
info
=
CreateHelpViewer
(
info
,
fullname
,
caller
);
if
(
!
info
)
if
(
!
info
)
{
heap_free
(
window
);
return
NULL
;
return
NULL
;
}
if
(
!
info
->
WinType
.
pszType
)
info
->
WinType
.
pszType
=
info
->
stringsW
.
pszType
=
window
;
else
heap_free
(
window
);
url
=
FindContextAlias
(
info
->
pCHMInfo
,
data
);
url
=
FindContextAlias
(
info
->
pCHMInfo
,
data
);
if
(
!
url
)
if
(
!
url
)
...
...
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