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
759e1707
Commit
759e1707
authored
Apr 16, 2005
by
Mike Hearn
Committed by
Alexandre Julliard
Apr 16, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Add text dumping of the requested command.
- Make the stub message appear for more commands.
parent
c31a7e98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
9 deletions
+57
-9
hhctrl.c
dlls/hhctrl.ocx/hhctrl.c
+57
-9
No files found.
dlls/hhctrl.ocx/hhctrl.c
View file @
759e1707
...
...
@@ -30,16 +30,64 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
htmlhelp
);
static
const
char
*
command_to_string
(
UINT
command
)
{
#define X(x) case x: return #x
switch
(
command
)
{
X
(
HH_DISPLAY_TOPIC
);
X
(
HH_DISPLAY_TOC
);
X
(
HH_DISPLAY_INDEX
);
X
(
HH_DISPLAY_SEARCH
);
X
(
HH_SET_WIN_TYPE
);
X
(
HH_GET_WIN_TYPE
);
X
(
HH_GET_WIN_HANDLE
);
X
(
HH_ENUM_INFO_TYPE
);
X
(
HH_SET_INFO_TYPE
);
X
(
HH_SYNC
);
X
(
HH_RESERVED1
);
X
(
HH_RESERVED2
);
X
(
HH_RESERVED3
);
X
(
HH_KEYWORD_LOOKUP
);
X
(
HH_DISPLAY_TEXT_POPUP
);
X
(
HH_HELP_CONTEXT
);
X
(
HH_TP_HELP_CONTEXTMENU
);
X
(
HH_TP_HELP_WM_HELP
);
X
(
HH_CLOSE_ALL
);
X
(
HH_ALINK_LOOKUP
);
X
(
HH_GET_LAST_ERROR
);
X
(
HH_ENUM_CATEGORY
);
X
(
HH_ENUM_CATEGORY_IT
);
X
(
HH_RESET_IT_FILTER
);
X
(
HH_SET_INCLUSIVE_FILTER
);
X
(
HH_SET_EXCLUSIVE_FILTER
);
X
(
HH_INITIALIZE
);
X
(
HH_UNINITIALIZE
);
X
(
HH_PRETRANSLATEMESSAGE
);
X
(
HH_SET_GLOBAL_PROPERTY
);
default:
return
"???"
;
}
#undef X
}
HWND
WINAPI
HtmlHelpW
(
HWND
caller
,
LPCWSTR
filename
,
UINT
command
,
DWORD
data
)
{
FIXME
(
"(%p, %s, command=%d, data=%ld): stub
\n
"
,
caller
,
debugstr_w
(
filename
),
command
,
data
);
FIXME
(
"(%p, %s, command=%s, data=%ld): stub
\n
"
,
caller
,
debugstr_w
(
filename
),
command_to_string
(
command
),
data
);
/* if command is HH_DISPLAY_TOPIC just display an informative message for now */
if
(
command
==
HH_DISPLAY_TOPIC
)
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
);
return
0
;
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
);
default:
return
0
;
}
}
HWND
WINAPI
HtmlHelpA
(
HWND
caller
,
LPCSTR
filename
,
UINT
command
,
DWORD
data
)
...
...
@@ -50,11 +98,11 @@ HWND WINAPI HtmlHelpA(HWND caller, LPCSTR filename, UINT command, DWORD data)
if
(
filename
)
{
DWORD
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
NULL
,
0
);
wfile
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
filename
,
-
1
,
wfile
,
len
);
}
result
=
HtmlHelpW
(
caller
,
wfile
,
command
,
data
);
HeapFree
(
GetProcessHeap
(),
0
,
wfile
);
...
...
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