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
07cf778b
Commit
07cf778b
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 display the page title.
parent
e862e7d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
winhelp.c
programs/winhelp/winhelp.c
+8
-2
No files found.
programs/winhelp/winhelp.c
View file @
07cf778b
...
@@ -112,6 +112,12 @@ BOOL WINHELP_GetOpenFileName(LPSTR lpszFile, int len)
...
@@ -112,6 +112,12 @@ BOOL WINHELP_GetOpenFileName(LPSTR lpszFile, int len)
return
GetOpenFileName
(
&
openfilename
);
return
GetOpenFileName
(
&
openfilename
);
}
}
static
char
*
WINHELP_GetCaption
(
WINHELP_WNDPAGE
*
wpage
)
{
if
(
wpage
->
wininfo
->
caption
[
0
])
return
wpage
->
wininfo
->
caption
;
return
wpage
->
page
->
file
->
lpszTitle
;
}
/***********************************************************************
/***********************************************************************
*
*
* WINHELP_LookupHelpFile
* WINHELP_LookupHelpFile
...
@@ -540,7 +546,7 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow)
...
@@ -540,7 +546,7 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow)
{
{
WINHELP_DeleteButtons
(
win
);
WINHELP_DeleteButtons
(
win
);
bReUsed
=
TRUE
;
bReUsed
=
TRUE
;
SetWindowText
(
win
->
hMainWnd
,
wpage
->
wininfo
->
caption
);
SetWindowText
(
win
->
hMainWnd
,
WINHELP_GetCaption
(
wpage
)
);
if
(
wpage
->
wininfo
->
origin
.
x
!=
CW_USEDEFAULT
&&
if
(
wpage
->
wininfo
->
origin
.
x
!=
CW_USEDEFAULT
&&
wpage
->
wininfo
->
origin
.
y
!=
CW_USEDEFAULT
)
wpage
->
wininfo
->
origin
.
y
!=
CW_USEDEFAULT
)
SetWindowPos
(
win
->
hMainWnd
,
HWND_TOP
,
SetWindowPos
(
win
->
hMainWnd
,
HWND_TOP
,
...
@@ -623,7 +629,7 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow)
...
@@ -623,7 +629,7 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow)
if
(
!
bReUsed
)
if
(
!
bReUsed
)
{
{
win
->
hMainWnd
=
CreateWindowEx
((
bPopup
)
?
WS_EX_TOOLWINDOW
:
0
,
MAIN_WIN_CLASS_NAME
,
win
->
hMainWnd
=
CreateWindowEx
((
bPopup
)
?
WS_EX_TOOLWINDOW
:
0
,
MAIN_WIN_CLASS_NAME
,
wpage
->
wininfo
->
caption
,
WINHELP_GetCaption
(
wpage
)
,
bPrimary
?
WS_OVERLAPPEDWINDOW
:
wpage
->
wininfo
->
win_style
,
bPrimary
?
WS_OVERLAPPEDWINDOW
:
wpage
->
wininfo
->
win_style
,
wpage
->
wininfo
->
origin
.
x
,
wpage
->
wininfo
->
origin
.
y
,
wpage
->
wininfo
->
origin
.
x
,
wpage
->
wininfo
->
origin
.
y
,
wpage
->
wininfo
->
size
.
cx
,
wpage
->
wininfo
->
size
.
cy
,
wpage
->
wininfo
->
size
.
cx
,
wpage
->
wininfo
->
size
.
cy
,
...
...
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