Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a10441d6
Commit
a10441d6
authored
Oct 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/ipaddress: Fix incorrect use of the ScreenToClient function.
parent
96ed854d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
ipaddress.c
dlls/comctl32/ipaddress.c
+4
-7
No files found.
dlls/comctl32/ipaddress.c
View file @
a10441d6
...
...
@@ -149,7 +149,6 @@ static LRESULT IPADDRESS_Draw (const IPADDRESS_INFO *infoPtr, HDC hdc)
{
static
const
WCHAR
dotW
[]
=
{
'.'
,
0
};
RECT
rect
,
rcPart
;
POINT
pt
;
COLORREF
bgCol
,
fgCol
;
int
i
;
...
...
@@ -173,13 +172,11 @@ static LRESULT IPADDRESS_Draw (const IPADDRESS_INFO *infoPtr, HDC hdc)
for
(
i
=
0
;
i
<
3
;
i
++
)
{
GetWindowRect
(
infoPtr
->
Part
[
i
].
EditHwnd
,
&
rcPart
);
pt
.
x
=
rcPart
.
right
;
ScreenToClient
(
infoPtr
->
Self
,
&
pt
);
rect
.
left
=
pt
.
x
;
MapWindowPoints
(
0
,
infoPtr
->
Self
,
(
POINT
*
)
&
rcPart
,
2
);
rect
.
left
=
rcPart
.
right
;
GetWindowRect
(
infoPtr
->
Part
[
i
+
1
].
EditHwnd
,
&
rcPart
);
pt
.
x
=
rcPart
.
left
;
ScreenToClient
(
infoPtr
->
Self
,
&
pt
);
rect
.
right
=
pt
.
x
;
MapWindowPoints
(
0
,
infoPtr
->
Self
,
(
POINT
*
)
&
rcPart
,
2
);
rect
.
right
=
rcPart
.
left
;
DrawTextW
(
hdc
,
dotW
,
1
,
&
rect
,
DT_SINGLELINE
|
DT_CENTER
|
DT_BOTTOM
);
}
...
...
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