Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
1b8c98d3
Commit
1b8c98d3
authored
Oct 16, 2006
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Oct 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: rebar: Don't return rectangles with negative width or height in NCCalcSize.
parent
a82b96f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
rebar.c
dlls/comctl32/rebar.c
+8
-6
No files found.
dlls/comctl32/rebar.c
View file @
1b8c98d3
...
...
@@ -4114,17 +4114,19 @@ inline static LRESULT
REBAR_NCCalcSize
(
REBAR_INFO
*
infoPtr
,
WPARAM
wParam
,
LPARAM
lParam
)
{
HTHEME
theme
;
RECT
*
rect
=
(
RECT
*
)
lParam
;
if
(
infoPtr
->
dwStyle
&
WS_BORDER
)
{
InflateRect
((
LPRECT
)
lParam
,
-
GetSystemMetrics
(
SM_CXEDGE
),
-
GetSystemMetrics
(
SM_CYEDGE
));
rect
->
left
=
min
(
rect
->
left
+
GetSystemMetrics
(
SM_CXEDGE
),
rect
->
right
);
rect
->
right
=
max
(
rect
->
right
-
GetSystemMetrics
(
SM_CXEDGE
),
rect
->
left
);
rect
->
top
=
min
(
rect
->
top
+
GetSystemMetrics
(
SM_CXEDGE
),
rect
->
bottom
);
rect
->
bottom
=
max
(
rect
->
bottom
-
GetSystemMetrics
(
SM_CXEDGE
),
rect
->
top
);
}
else
if
((
theme
=
GetWindowTheme
(
infoPtr
->
hwndSelf
)))
{
((
LPRECT
)
lParam
)
->
top
++
;
rect
->
top
=
min
(
rect
->
top
+
1
,
rect
->
bottom
)
;
}
TRACE
(
"new client=(%d,%d)-(%d,%d)
\n
"
,
((
LPRECT
)
lParam
)
->
left
,
((
LPRECT
)
lParam
)
->
top
,
((
LPRECT
)
lParam
)
->
right
,
((
LPRECT
)
lParam
)
->
bottom
);
TRACE
(
"new client=(%d,%d)-(%d,%d)
\n
"
,
rect
->
left
,
rect
->
top
,
rect
->
right
,
rect
->
bottom
);
return
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