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
a37e5975
Commit
a37e5975
authored
Oct 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/propsheet: Fix incorrect use of the ScreenToClient function.
parent
87b359c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
propsheet.c
dlls/comctl32/propsheet.c
+5
-14
No files found.
dlls/comctl32/propsheet.c
View file @
a37e5975
...
...
@@ -1074,18 +1074,13 @@ static PADDING_INFO PROPSHEET_GetPaddingInfo(HWND hwndDlg)
{
HWND
hwndTab
=
GetDlgItem
(
hwndDlg
,
IDC_TABCONTROL
);
RECT
rcTab
;
POINT
tl
;
PADDING_INFO
padding
;
GetWindowRect
(
hwndTab
,
&
rcTab
);
MapWindowPoints
(
0
,
hwndDlg
,
(
POINT
*
)
&
rcTab
,
2
);
tl
.
x
=
rcTab
.
left
;
tl
.
y
=
rcTab
.
top
;
ScreenToClient
(
hwndDlg
,
&
tl
);
padding
.
x
=
tl
.
x
;
padding
.
y
=
tl
.
y
;
padding
.
x
=
rcTab
.
left
;
padding
.
y
=
rcTab
.
top
;
return
padding
;
}
...
...
@@ -1131,21 +1126,17 @@ static PADDING_INFO PROPSHEET_GetPaddingInfoWizard(HWND hwndDlg, const PropSheet
hwndControl
=
GetDlgItem
(
hwndDlg
,
idButton
);
GetWindowRect
(
hwndControl
,
&
rc
);
MapWindowPoints
(
0
,
hwndDlg
,
(
POINT
*
)
&
rc
,
2
);
ptButton
.
x
=
rc
.
left
;
ptButton
.
y
=
rc
.
top
;
ScreenToClient
(
hwndDlg
,
&
ptButton
);
/* Line */
hwndControl
=
GetDlgItem
(
hwndDlg
,
IDC_SUNKEN_LINE
);
GetWindowRect
(
hwndControl
,
&
rc
);
MapWindowPoints
(
0
,
hwndDlg
,
(
POINT
*
)
&
rc
,
2
);
ptLine
.
x
=
rc
.
left
;
ptLine
.
y
=
rc
.
bottom
;
ScreenToClient
(
hwndDlg
,
&
ptLine
);
padding
.
y
=
ptButton
.
y
-
ptLine
.
y
;
if
(
padding
.
y
<
0
)
...
...
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