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
b4b99697
Commit
b4b99697
authored
Mar 28, 2013
by
Huw Davies
Committed by
Alexandre Julliard
Mar 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Keep the combo listbox within the monitor's work area.
parent
46919f21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
combo.c
dlls/user32/combo.c
+12
-6
No files found.
dlls/user32/combo.c
View file @
b4b99697
...
...
@@ -1043,18 +1043,24 @@ static void CBDropDown( LPHEADCOMBO lphc )
}
}
r
.
left
=
rect
.
left
;
r
.
top
=
rect
.
bottom
;
r
.
right
=
r
.
left
+
lphc
->
droppedRect
.
right
-
lphc
->
droppedRect
.
left
;
r
.
bottom
=
r
.
top
+
nDroppedHeight
;
/*If height of dropped rectangle gets beyond a screen size it should go up, otherwise down.*/
monitor
=
MonitorFromRect
(
&
rect
,
MONITOR_DEFAULTTOPRIMARY
);
mon_info
.
cbSize
=
sizeof
(
mon_info
);
GetMonitorInfoW
(
monitor
,
&
mon_info
);
if
(
(
rect
.
bottom
+
nDroppedHeight
)
>=
mon_info
.
rcWork
.
bottom
)
rect
.
bottom
=
rect
.
top
-
nDroppedHeight
;
if
(
r
.
bottom
>
mon_info
.
rcWork
.
bottom
)
{
r
.
top
=
max
(
rect
.
top
-
nDroppedHeight
,
mon_info
.
rcWork
.
top
);
r
.
bottom
=
min
(
r
.
top
+
nDroppedHeight
,
mon_info
.
rcWork
.
bottom
);
}
SetWindowPos
(
lphc
->
hWndLBox
,
HWND_TOP
,
rect
.
left
,
rect
.
bottom
,
lphc
->
droppedRect
.
right
-
lphc
->
droppedRect
.
left
,
nDroppedHeight
,
SWP_NOACTIVATE
|
SWP_SHOWWINDOW
);
SetWindowPos
(
lphc
->
hWndLBox
,
HWND_TOP
,
r
.
left
,
r
.
top
,
r
.
right
-
r
.
left
,
r
.
bottom
-
r
.
top
,
SWP_NOACTIVATE
|
SWP_SHOWWINDOW
);
if
(
!
(
lphc
->
wState
&
CBF_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