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
448fed20
Commit
448fed20
authored
Jul 12, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Implemented SetHelpOnFile macro.
parent
f6e93ea2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
hlpfile.c
programs/winhlp32/hlpfile.c
+1
-0
hlpfile.h
programs/winhlp32/hlpfile.h
+2
-0
macro.c
programs/winhlp32/macro.c
+14
-3
No files found.
programs/winhlp32/hlpfile.c
View file @
448fed20
...
...
@@ -2641,5 +2641,6 @@ void HLPFILE_FreeHlpFile(HLPFILE* hlpfile)
HeapFree
(
GetProcessHeap
(),
0
,
hlpfile
->
phrases_offsets
);
HeapFree
(
GetProcessHeap
(),
0
,
hlpfile
->
phrases_buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
hlpfile
->
topic_map
);
HeapFree
(
GetProcessHeap
(),
0
,
hlpfile
->
help_on_file
);
HeapFree
(
GetProcessHeap
(),
0
,
hlpfile
);
}
programs/winhlp32/hlpfile.h
View file @
448fed20
...
...
@@ -132,6 +132,8 @@ typedef struct tagHlpFileFile
unsigned
numWindows
;
HLPFILE_WINDOWINFO
*
windows
;
HICON
hIcon
;
LPSTR
help_on_file
;
}
HLPFILE
;
/*
...
...
programs/winhlp32/macro.c
View file @
448fed20
...
...
@@ -2,7 +2,7 @@
* Help Viewer
*
* Copyright 1996 Ulrich Schmid
* Copyright 2002 Eric Pouech
* Copyright 2002
, 2008
Eric Pouech
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -555,8 +555,14 @@ void CALLBACK MACRO_GotoMark(LPCSTR str)
void
CALLBACK
MACRO_HelpOn
(
void
)
{
LPCSTR
file
;
WINE_TRACE
(
"()
\n
"
);
MACRO_JumpContents
((
Globals
.
wVersion
>
4
)
?
"winhelp32.hlp"
:
"winhelp.hlp"
,
NULL
);
file
=
Globals
.
active_win
->
page
->
file
->
help_on_file
;
if
(
!
file
)
file
=
(
Globals
.
wVersion
>
4
)
?
"winhlp32.hlp"
:
"winhelp.hlp"
;
MACRO_JumpContents
(
file
,
NULL
);
}
void
CALLBACK
MACRO_HelpOnTop
(
void
)
...
...
@@ -890,7 +896,12 @@ void CALLBACK MACRO_SetContents(LPCSTR str, LONG u)
void
CALLBACK
MACRO_SetHelpOnFile
(
LPCSTR
str
)
{
WINE_FIXME
(
"(
\"
%s
\"
)
\n
"
,
str
);
WINE_TRACE
(
"(
\"
%s
\"
)
\n
"
,
str
);
HeapFree
(
GetProcessHeap
(),
0
,
Globals
.
active_win
->
page
->
file
->
help_on_file
);
Globals
.
active_win
->
page
->
file
->
help_on_file
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
str
)
+
1
);
if
(
Globals
.
active_win
->
page
->
file
->
help_on_file
)
strcpy
(
Globals
.
active_win
->
page
->
file
->
help_on_file
,
str
);
}
void
CALLBACK
MACRO_SetPopupColor
(
LONG
u1
,
LONG
u2
,
LONG
u3
)
...
...
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