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
cef12530
Commit
cef12530
authored
Aug 01, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
Aug 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change logic of listbox resizing for 16 bits apps for lists without
LBS_NOINTEGRALHEIGHT style.
parent
3c41fabc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
listbox.c
controls/listbox.c
+12
-5
No files found.
controls/listbox.c
View file @
cef12530
...
...
@@ -348,16 +348,23 @@ static void LISTBOX_UpdateSize( WND *wnd, LB_DESCR *descr )
descr
->
height
=
rect
.
bottom
-
rect
.
top
;
if
(
!
(
descr
->
style
&
LBS_NOINTEGRALHEIGHT
)
&&
!
(
descr
->
style
&
LBS_OWNERDRAWVARIABLE
))
{
if
((
descr
->
height
>
descr
->
item_height
)
&&
(
descr
->
height
%
descr
->
item_height
)
)
UINT
remaining
=
descr
->
height
%
descr
->
item_height
;
if
((
descr
->
height
>
descr
->
item_height
)
&&
remaining
)
{
if
(
!
(
wnd
->
flags
&
WIN_ISWIN32
))
{
/* give a margin for error to 16 bits programs - if we need
less than the height of the nonclient area, round to the
*next* number of items */
int
ncheight
=
wnd
->
rectWindow
.
bottom
-
wnd
->
rectWindow
.
top
-
descr
->
height
;
if
((
descr
->
item_height
-
remaining
)
<=
ncheight
)
remaining
=
remaining
-
descr
->
item_height
;
}
TRACE
(
"[%04x]: changing height %d -> %d
\n
"
,
wnd
->
hwndSelf
,
descr
->
height
,
descr
->
height
-
descr
->
height
%
descr
->
item_height
);
descr
->
height
-
remaining
);
SetWindowPos
(
wnd
->
hwndSelf
,
0
,
0
,
0
,
wnd
->
rectWindow
.
right
-
wnd
->
rectWindow
.
left
,
wnd
->
rectWindow
.
bottom
-
wnd
->
rectWindow
.
top
-
(
descr
->
height
%
descr
->
item_height
),
wnd
->
rectWindow
.
bottom
-
wnd
->
rectWindow
.
top
-
remaining
,
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOMOVE
);
return
;
}
...
...
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