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
935331f6
Commit
935331f6
authored
Jan 14, 2002
by
Guy Albertelli
Committed by
Alexandre Julliard
Jan 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a gripper issue and the adjustment of bands when RBBS_FIXEDSIZE
specified.
parent
f0cd93f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
rebar.c
dlls/comctl32/rebar.c
+16
-3
No files found.
dlls/comctl32/rebar.c
View file @
935331f6
...
...
@@ -20,7 +20,7 @@
/*
* Rebar control rev 8
a
* Rebar control rev 8
b
*
* Copyright 1998, 1999 Eric Kohl
*
...
...
@@ -88,6 +88,9 @@
* 15. Implement RBBS_CHILDEDGE, and set each bands "offChild" at _Layout
* time.
* 16. Fix REBARSPACE. It should depend on CCS_NODIVIDER.
* rev 8b
* 17. Fix determination of whether Gripper is needed in _ValidateBand.
* 18. Fix _AdjustBand processing of RBBS_FIXEDSIZE.
*
*
* Still to do:
...
...
@@ -705,7 +708,7 @@ REBAR_AdjustBands (REBAR_INFO *infoPtr, UINT rowstart, UINT rowend,
lpBand
->
rcBand
.
left
=
x
+
xsep
;
/* compute new width */
if
(
lpBand
->
hwndChild
&&
extra
)
{
if
(
(
lpBand
->
hwndChild
&&
extra
)
&&
!
(
lpBand
->
fStyle
&
RBBS_FIXEDSIZE
)
)
{
/* set to the "current" band size less the header */
fudge
=
lpBand
->
ccx
;
last_adjusted
=
i
;
...
...
@@ -1853,6 +1856,8 @@ REBAR_ValidateBand (REBAR_INFO *infoPtr, REBAR_BAND *lpBand)
{
UINT
header
=
0
;
UINT
textheight
=
0
;
INT
i
,
nonfixed
;
REBAR_BAND
*
tBand
;
lpBand
->
fStatus
=
0
;
lpBand
->
lcx
=
0
;
...
...
@@ -1889,10 +1894,18 @@ REBAR_ValidateBand (REBAR_INFO *infoPtr, REBAR_BAND *lpBand)
/* Header is where the image, text and gripper exist */
/* in the band and preceed the child window. */
/* count number of non-FIXEDSIZE and non-Hidden bands */
nonfixed
=
0
;
for
(
i
=
0
;
i
<
infoPtr
->
uNumBands
;
i
++
){
tBand
=
&
infoPtr
->
bands
[
i
];
if
(
!
HIDDENBAND
(
tBand
)
&&
!
(
tBand
->
fStyle
&
RBBS_FIXEDSIZE
))
nonfixed
++
;
}
/* calculate gripper rectangle */
if
(
(
!
(
lpBand
->
fStyle
&
RBBS_NOGRIPPER
))
&&
(
(
lpBand
->
fStyle
&
RBBS_GRIPPERALWAYS
)
||
(
!
(
lpBand
->
fStyle
&
RBBS_FIXEDSIZE
)
&&
(
infoPtr
->
uNumBands
>
1
)))
(
!
(
lpBand
->
fStyle
&
RBBS_FIXEDSIZE
)
&&
(
nonfixed
>
1
)))
)
{
lpBand
->
fStatus
|=
HAS_GRIPPER
;
if
(
infoPtr
->
dwStyle
&
CCS_VERT
)
...
...
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