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
b2061c26
Commit
b2061c26
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: Popup's background color should be inherited from parent.
parent
6cd9b1a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
winhelp.c
programs/winhelp/winhelp.c
+7
-5
No files found.
programs/winhelp/winhelp.c
View file @
b2061c26
...
...
@@ -203,7 +203,8 @@ HLPFILE_WINDOWINFO* WINHELP_GetWindowInfo(HLPFILE* hlpfile, LPCSTR name)
*
*
*/
static
HLPFILE_WINDOWINFO
*
WINHELP_GetPopupWindowInfo
(
HLPFILE
*
hlpfile
,
HWND
hParentWnd
,
POINT
*
mouse
)
static
HLPFILE_WINDOWINFO
*
WINHELP_GetPopupWindowInfo
(
HLPFILE
*
hlpfile
,
WINHELP_WINDOW
*
parent
,
POINT
*
mouse
)
{
static
HLPFILE_WINDOWINFO
wi
;
...
...
@@ -212,19 +213,20 @@ static HLPFILE_WINDOWINFO* WINHELP_GetPopupWindowInfo(HLPFILE* hlpfile, HWND
wi
.
type
[
0
]
=
wi
.
name
[
0
]
=
wi
.
caption
[
0
]
=
'\0'
;
/* Calculate horizontal size and position of a popup window */
GetWindowRect
(
hParent
Wnd
,
&
parent_rect
);
GetWindowRect
(
parent
->
hMain
Wnd
,
&
parent_rect
);
wi
.
size
.
cx
=
(
parent_rect
.
right
-
parent_rect
.
left
)
/
2
;
wi
.
size
.
cy
=
10
;
/* need a non null value, so that border are taken into account while computing */
wi
.
origin
=
*
mouse
;
ClientToScreen
(
hParent
Wnd
,
&
wi
.
origin
);
ClientToScreen
(
parent
->
hMain
Wnd
,
&
wi
.
origin
);
wi
.
origin
.
x
-=
wi
.
size
.
cx
/
2
;
wi
.
origin
.
x
=
min
(
wi
.
origin
.
x
,
GetSystemMetrics
(
SM_CXSCREEN
)
-
wi
.
size
.
cx
);
wi
.
origin
.
x
=
max
(
wi
.
origin
.
x
,
0
);
wi
.
style
=
SW_SHOW
;
wi
.
win_style
=
WS_POPUP
|
WS_BORDER
;
wi
.
sr_color
=
wi
.
sr_color
=
0xFFFFFF
;
wi
.
sr_color
=
parent
->
info
->
sr_color
;
wi
.
nsr_color
=
0xFFFFFF
;
return
&
wi
;
}
...
...
@@ -1207,7 +1209,7 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
case
hlp_link_popup
:
hlpfile
=
WINHELP_LookupHelpFile
(
part
->
link
->
lpszString
);
if
(
hlpfile
)
WINHELP_OpenHelpWindow
(
HLPFILE_PageByHash
,
hlpfile
,
part
->
link
->
lHash
,
WINHELP_GetPopupWindowInfo
(
hlpfile
,
hWnd
,
&
mouse
),
WINHELP_GetPopupWindowInfo
(
hlpfile
,
win
,
&
mouse
),
SW_NORMAL
);
break
;
case
hlp_link_macro
:
...
...
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