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
5eedf51d
Commit
5eedf51d
authored
May 06, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/rebar: Try to center child rectangle only if cyChild height is not zero.
parent
ac7a24ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
rebar.c
dlls/comctl32/rebar.c
+19
-7
No files found.
dlls/comctl32/rebar.c
View file @
5eedf51d
...
...
@@ -707,7 +707,7 @@ REBAR_CalcHorzBand (const REBAR_INFO *infoPtr, UINT rstart, UINT rend)
/* *** Supports only Horizontal bars. *** */
{
REBAR_BAND
*
lpBand
;
UINT
i
,
xoff
,
yoff
;
UINT
i
,
xoff
;
RECT
work
;
for
(
i
=
rstart
;
i
<
rend
;
i
++
){
...
...
@@ -770,12 +770,24 @@ REBAR_CalcHorzBand (const REBAR_INFO *infoPtr, UINT rstart, UINT rend)
}
/* set initial child window rectangle if there is a child */
if
(
lpBand
->
hwndChild
!=
NULL
)
{
int
cyBand
=
lpBand
->
rcBand
.
bottom
-
lpBand
->
rcBand
.
top
;
yoff
=
(
cyBand
-
lpBand
->
cyChild
)
/
2
;
SetRect
(
&
lpBand
->
rcChild
,
lpBand
->
rcBand
.
left
+
lpBand
->
cxHeader
,
lpBand
->
rcBand
.
top
+
yoff
,
lpBand
->
rcBand
.
right
-
REBAR_POST_CHILD
,
lpBand
->
rcBand
.
top
+
yoff
+
lpBand
->
cyChild
);
if
(
lpBand
->
hwndChild
)
{
lpBand
->
rcChild
.
left
=
lpBand
->
rcBand
.
left
+
lpBand
->
cxHeader
;
lpBand
->
rcChild
.
right
=
lpBand
->
rcBand
.
right
-
REBAR_POST_CHILD
;
if
(
lpBand
->
cyChild
>
0
)
{
UINT
yoff
=
(
lpBand
->
rcBand
.
bottom
-
lpBand
->
rcBand
.
top
-
lpBand
->
cyChild
)
/
2
;
/* center child if height is known */
lpBand
->
rcChild
.
top
=
lpBand
->
rcBand
.
top
+
yoff
;
lpBand
->
rcChild
.
bottom
=
lpBand
->
rcBand
.
top
+
yoff
+
lpBand
->
cyChild
;
}
else
{
lpBand
->
rcChild
.
top
=
lpBand
->
rcBand
.
top
;
lpBand
->
rcChild
.
bottom
=
lpBand
->
rcBand
.
bottom
;
}
if
((
lpBand
->
fStyle
&
RBBS_USECHEVRON
)
&&
(
lpBand
->
rcChild
.
right
-
lpBand
->
rcChild
.
left
<
lpBand
->
cxIdeal
))
{
lpBand
->
rcChild
.
right
-=
CHEVRON_WIDTH
;
...
...
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