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
ccd75350
Commit
ccd75350
authored
Apr 22, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Properly handle the back button (in multiple windows, in empty stack...).
parent
d95bcb73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
macro.c
programs/winhelp/macro.c
+1
-11
winhelp.c
programs/winhelp/winhelp.c
+19
-3
winhelp.h
programs/winhelp/winhelp.h
+1
-0
No files found.
programs/winhelp/macro.c
View file @
ccd75350
...
...
@@ -230,17 +230,7 @@ void CALLBACK MACRO_BackFlush(void)
WINE_TRACE
(
"()
\n
"
);
if
(
win
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
win
->
back
.
index
;
i
++
)
{
HLPFILE_FreeHlpFile
(
win
->
back
.
set
[
i
].
page
->
file
);
win
->
back
.
set
[
i
].
page
=
NULL
;
}
win
->
back
.
index
=
0
;
}
if
(
win
)
WINHELP_DeleteBackSet
(
win
);
}
void
CALLBACK
MACRO_BookmarkDefine
(
void
)
...
...
programs/winhelp/winhelp.c
View file @
ccd75350
...
...
@@ -549,6 +549,8 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow)
wpage
->
wininfo
->
size
.
cy
!=
CW_USEDEFAULT
)
SetWindowPos
(
win
->
hMainWnd
,
HWND_TOP
,
0
,
0
,
wpage
->
wininfo
->
size
.
cx
,
wpage
->
wininfo
->
size
.
cy
,
SWP_NOMOVE
);
if
(
wpage
->
page
&&
wpage
->
page
->
file
!=
win
->
page
->
file
)
WINHELP_DeleteBackSet
(
win
);
WINHELP_InitFonts
(
win
->
hMainWnd
);
win
->
page
=
wpage
->
page
;
...
...
@@ -1814,6 +1816,22 @@ static void WINHELP_DeleteButtons(WINHELP_WINDOW* win)
win
->
first_button
=
NULL
;
}
/******************************************************************
* WINHELP_DeleteBackSet
*
*/
void
WINHELP_DeleteBackSet
(
WINHELP_WINDOW
*
win
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
win
->
back
.
index
;
i
++
)
{
HLPFILE_FreeHlpFile
(
win
->
back
.
set
[
i
].
page
->
file
);
win
->
back
.
set
[
i
].
page
=
NULL
;
}
win
->
back
.
index
=
0
;
}
/***********************************************************************
*
* WINHELP_DeleteWindow
...
...
@@ -1821,7 +1839,6 @@ static void WINHELP_DeleteButtons(WINHELP_WINDOW* win)
static
void
WINHELP_DeleteWindow
(
WINHELP_WINDOW
*
win
)
{
WINHELP_WINDOW
**
w
;
unsigned
int
i
;
for
(
w
=
&
Globals
.
win_list
;
*
w
;
w
=
&
(
*
w
)
->
next
)
{
...
...
@@ -1846,8 +1863,7 @@ static void WINHELP_DeleteWindow(WINHELP_WINDOW* win)
DeleteObject
(
win
->
hBrush
);
for
(
i
=
0
;
i
<
win
->
back
.
index
;
i
++
)
HLPFILE_FreeHlpFile
(
win
->
back
.
set
[
i
].
page
->
file
);
WINHELP_DeleteBackSet
(
win
);
if
(
win
->
page
)
HLPFILE_FreeHlpFile
(
win
->
page
->
file
);
WINHELP_DeleteLines
(
win
);
...
...
programs/winhelp/winhelp.h
View file @
ccd75350
...
...
@@ -183,6 +183,7 @@ BOOL WINHELP_CreateHelpWindowByOffset(HLPFILE*, LONG, HLPFILE_WINDOWINFO*, int);
BOOL
WINHELP_CreateHelpWindow
(
WINHELP_WNDPAGE
*
,
int
);
BOOL
WINHELP_GetOpenFileName
(
LPSTR
,
int
);
BOOL
WINHELP_CreateIndexWindow
(
void
);
void
WINHELP_DeleteBackSet
(
WINHELP_WINDOW
*
);
INT
WINHELP_MessageBoxIDS
(
UINT
,
UINT
,
WORD
);
INT
WINHELP_MessageBoxIDS_s
(
UINT
,
LPCSTR
,
UINT
,
WORD
);
HLPFILE
*
WINHELP_LookupHelpFile
(
LPCSTR
lpszFile
);
...
...
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