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
3ae5ad8e
Commit
3ae5ad8e
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: Enable/Disable prev/next buttons if there's a prev/next page.
parent
7ae1bb28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
macro.c
programs/winhelp/macro.c
+7
-0
winhelp.c
programs/winhelp/winhelp.c
+11
-11
No files found.
programs/winhelp/macro.c
View file @
3ae5ad8e
...
...
@@ -245,10 +245,17 @@ void CALLBACK MACRO_BookmarkMore(void)
void
CALLBACK
MACRO_BrowseButtons
(
void
)
{
HLPFILE_PAGE
*
page
=
Globals
.
active_win
->
page
;
WINE_TRACE
(
"()
\n
"
);
MACRO_CreateButton
(
"BTN_PREV"
,
"&<<"
,
"Prev()"
);
MACRO_CreateButton
(
"BTN_NEXT"
,
"&>>"
,
"Next()"
);
if
(
!
HLPFILE_PageByOffset
(
page
->
file
,
page
->
browse_bwd
))
MACRO_DisableButton
(
"BTN_PREV"
);
if
(
!
HLPFILE_PageByOffset
(
page
->
file
,
page
->
browse_fwd
))
MACRO_DisableButton
(
"BTN_NEXT"
);
}
void
CALLBACK
MACRO_ChangeButtonBinding
(
LPCSTR
id
,
LPCSTR
macro
)
...
...
programs/winhelp/winhelp.c
View file @
3ae5ad8e
...
...
@@ -614,17 +614,6 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
MACRO_CreateButton
(
"BTN_TOPICS"
,
buffer
,
"Finder()"
);
}
/* Initialize file specific pushbuttons */
if
(
!
(
wpage
->
wininfo
->
win_style
&
WS_POPUP
)
&&
wpage
->
page
)
{
HLPFILE_MACRO
*
macro
;
for
(
macro
=
wpage
->
page
->
file
->
first_macro
;
macro
;
macro
=
macro
->
next
)
MACRO_ExecuteMacro
(
macro
->
lpszMacro
);
for
(
macro
=
wpage
->
page
->
first_macro
;
macro
;
macro
=
macro
->
next
)
MACRO_ExecuteMacro
(
macro
->
lpszMacro
);
}
if
(
!
bReUsed
)
{
win
->
hMainWnd
=
CreateWindowEx
((
bPopup
)
?
WS_EX_TOOLWINDOW
:
0
,
MAIN_WIN_CLASS_NAME
,
...
...
@@ -644,6 +633,17 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
0
,
0
,
0
,
0
,
win
->
hMainWnd
,
(
HMENU
)
CTL_ID_TEXT
,
Globals
.
hInstance
,
win
);
}
/* Initialize file specific pushbuttons */
if
(
!
(
wpage
->
wininfo
->
win_style
&
WS_POPUP
)
&&
wpage
->
page
)
{
HLPFILE_MACRO
*
macro
;
for
(
macro
=
wpage
->
page
->
file
->
first_macro
;
macro
;
macro
=
macro
->
next
)
MACRO_ExecuteMacro
(
macro
->
lpszMacro
);
for
(
macro
=
wpage
->
page
->
first_macro
;
macro
;
macro
=
macro
->
next
)
MACRO_ExecuteMacro
(
macro
->
lpszMacro
);
}
WINHELP_LayoutMainWindow
(
win
);
if
(
bPopup
)
Globals
.
hPopupWnd
=
win
->
hMainWnd
;
...
...
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