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
11f09f3a
Commit
11f09f3a
authored
Jul 10, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: rebar: Prevent unnecessary triggering of RBBIM_CHILDSIZE changes.
parent
1c2ad72b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
rebar.c
dlls/comctl32/rebar.c
+10
-2
No files found.
dlls/comctl32/rebar.c
View file @
11f09f3a
...
...
@@ -1647,7 +1647,7 @@ static UINT
REBAR_CommonSetupBand
(
HWND
hwnd
,
const
REBARBANDINFOW
*
lprbbi
,
REBAR_BAND
*
lpBand
)
/* Function: This routine copies the supplied values from */
/* user input (lprbbi) to the internal band structure. */
/* It returns t
rue if something changed and false if not
. */
/* It returns t
he mask of what changed
. */
{
UINT
uChanged
=
0x0
;
...
...
@@ -1699,7 +1699,7 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
if
(
(
lprbbi
->
fMask
&
RBBIM_CHILDSIZE
)
&&
(
(
lpBand
->
cxMinChild
!=
lprbbi
->
cxMinChild
)
||
(
lpBand
->
cyMinChild
!=
lprbbi
->
cyMinChild
)
||
(
(
lprbbi
->
cbSize
>=
sizeof
(
REBARBANDINFOA
))
&&
(
(
lprbbi
->
cbSize
>=
sizeof
(
REBARBANDINFOA
)
&&
(
lpBand
->
fStyle
&
RBBS_VARIABLEHEIGHT
)
)
&&
(
(
lpBand
->
cyChild
!=
lprbbi
->
cyChild
)
||
(
lpBand
->
cyMaxChild
!=
lprbbi
->
cyMaxChild
)
||
(
lpBand
->
cyIntegral
!=
lprbbi
->
cyIntegral
)
)
)
||
...
...
@@ -2422,6 +2422,14 @@ REBAR_InsertBandT(REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnico
lpBand
->
iImage
=
-
1
;
REBAR_CommonSetupBand
(
infoPtr
->
hwndSelf
,
lprbbi
,
lpBand
);
/* Make sure the defaults for these are correct */
if
(
lprbbi
->
cbSize
<
sizeof
(
REBARBANDINFOA
)
||
!
(
lpBand
->
fStyle
&
RBBS_VARIABLEHEIGHT
))
{
lpBand
->
cyChild
=
lpBand
->
cyMinChild
;
lpBand
->
cyMaxChild
=
0x7fffffff
;
lpBand
->
cyIntegral
=
0
;
}
if
((
lprbbi
->
fMask
&
RBBIM_TEXT
)
&&
(
lprbbi
->
lpText
))
{
if
(
bUnicode
)
Str_SetPtrW
(
&
lpBand
->
lpText
,
lprbbi
->
lpText
);
...
...
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