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
4b4c1a00
Commit
4b4c1a00
authored
Oct 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/comboex: Fix incorrect use of the ScreenToClient function.
parent
d1f8eb49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
comboex.c
dlls/comctl32/comboex.c
+7
-12
No files found.
dlls/comctl32/comboex.c
View file @
4b4c1a00
...
...
@@ -431,18 +431,13 @@ static void COMBOEX_ReSize (const COMBOEX_INFO *infoPtr)
if
(
infoPtr
->
hwndCombo
)
{
SendMessageW
(
infoPtr
->
hwndCombo
,
CB_SETITEMHEIGHT
,
0
,
cy
);
if
(
!
(
infoPtr
->
flags
&
CBES_EX_NOSIZELIMIT
))
{
RECT
comboRect
;
if
(
GetWindowRect
(
infoPtr
->
hwndCombo
,
&
comboRect
))
{
RECT
ourRect
;
if
(
GetWindowRect
(
infoPtr
->
hwndSelf
,
&
ourRect
))
{
if
(
comboRect
.
bottom
>
ourRect
.
bottom
)
{
POINT
pt
=
{
ourRect
.
left
,
ourRect
.
top
};
if
(
ScreenToClient
(
infoPtr
->
hwndSelf
,
&
pt
))
MoveWindow
(
infoPtr
->
hwndSelf
,
pt
.
x
,
pt
.
y
,
ourRect
.
right
-
ourRect
.
left
,
comboRect
.
bottom
-
comboRect
.
top
,
FALSE
);
}
}
}
RECT
comboRect
,
ourRect
;
GetWindowRect
(
infoPtr
->
hwndCombo
,
&
comboRect
);
GetWindowRect
(
infoPtr
->
hwndSelf
,
&
ourRect
);
if
(
comboRect
.
bottom
>
ourRect
.
bottom
)
SetWindowPos
(
infoPtr
->
hwndSelf
,
0
,
0
,
0
,
ourRect
.
right
-
ourRect
.
left
,
comboRect
.
bottom
-
comboRect
.
top
,
SWP_NOMOVE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
}
}
}
...
...
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