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
3de9f4c6
Commit
3de9f4c6
authored
Nov 04, 2005
by
James Hawkins
Committed by
Alexandre Julliard
Nov 04, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass HtmlHelp commands to doWinMain.
parent
1c310878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+15
-4
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
3de9f4c6
...
...
@@ -30,6 +30,8 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
htmlhelp
);
int
WINAPI
doWinMain
(
HINSTANCE
hInstance
,
LPSTR
szCmdLine
);
static
const
char
*
command_to_string
(
UINT
command
)
{
#define X(x) case x: return #x
...
...
@@ -72,19 +74,28 @@ static const char *command_to_string(UINT command)
HWND
WINAPI
HtmlHelpW
(
HWND
caller
,
LPCWSTR
filename
,
UINT
command
,
DWORD
data
)
{
FIXME
(
"(%p, %s, command=%s, data=%ld): stub
\n
"
,
CHAR
*
file
=
NULL
;
TRACE
(
"(%p, %s, command=%s, data=%ld)
\n
"
,
caller
,
debugstr_w
(
filename
),
command_to_string
(
command
),
data
);
if
(
filename
)
{
DWORD
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
filename
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
file
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
filename
,
-
1
,
file
,
len
,
NULL
,
NULL
);
}
switch
(
command
)
{
case
HH_DISPLAY_TOPIC
:
case
HH_DISPLAY_TOC
:
case
HH_DISPLAY_SEARCH
:
case
HH_HELP_CONTEXT
:
MessageBoxA
(
NULL
,
"HTML Help functionality is currently unimplemented.
\n\n
"
"Try installing Internet Explorer, or using a native hhctrl.ocx with the Mozilla ActiveX control."
,
"Wine"
,
MB_OK
|
MB_ICONEXCLAMATION
);
FIXME
(
"Not all HH cases handled correctly
\n
"
);
doWinMain
(
GetModuleHandleW
(
NULL
),
file
);
default:
return
0
;
}
...
...
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