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
1c2ad72b
Commit
1c2ad72b
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: Record what changes and only redo the Layout if something of relevance changes.
parent
80ee225f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
rebar.c
dlls/comctl32/rebar.c
+18
-18
No files found.
dlls/comctl32/rebar.c
View file @
1c2ad72b
...
...
@@ -1643,13 +1643,13 @@ REBAR_ValidateBand (const REBAR_INFO *infoPtr, REBAR_BAND *lpBand)
lpBand
->
cxMinBand
+=
CHEVRON_WIDTH
;
}
static
BOOL
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 true if something changed and false if not. */
{
BOOL
bChanged
=
FALSE
;
UINT
uChanged
=
0x0
;
lpBand
->
fMask
|=
lprbbi
->
fMask
;
...
...
@@ -1657,7 +1657,7 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
(
lpBand
->
fStyle
!=
lprbbi
->
fStyle
)
)
{
lpBand
->
fStyle
=
lprbbi
->
fStyle
;
bChanged
=
TRU
E
;
uChanged
|=
RBBIM_STYL
E
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_COLORS
)
&&
...
...
@@ -1666,14 +1666,14 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
{
lpBand
->
clrFore
=
lprbbi
->
clrFore
;
lpBand
->
clrBack
=
lprbbi
->
clrBack
;
bChanged
=
TRUE
;
uChanged
|=
RBBIM_COLORS
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_IMAGE
)
&&
(
lpBand
->
iImage
!=
lprbbi
->
iImage
)
)
{
lpBand
->
iImage
=
lprbbi
->
iImage
;
bChanged
=
TRU
E
;
uChanged
|=
RBBIM_IMAG
E
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_CHILD
)
&&
...
...
@@ -1693,7 +1693,7 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
lpBand
->
hwndChild
=
0
;
lpBand
->
hwndPrevParent
=
0
;
}
bChanged
=
TRUE
;
uChanged
|=
RBBIM_CHILD
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_CHILDSIZE
)
&&
...
...
@@ -1722,28 +1722,28 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
lpBand
->
cyMaxChild
=
0x7fffffff
;
lpBand
->
cyIntegral
=
0
;
}
bChanged
=
TRU
E
;
uChanged
|=
RBBIM_CHILDSIZ
E
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_SIZE
)
&&
(
lpBand
->
cx
!=
lprbbi
->
cx
)
)
{
lpBand
->
cx
=
lprbbi
->
cx
;
bChanged
=
TRU
E
;
uChanged
|=
RBBIM_SIZ
E
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_BACKGROUND
)
&&
(
lpBand
->
hbmBack
!=
lprbbi
->
hbmBack
)
)
{
lpBand
->
hbmBack
=
lprbbi
->
hbmBack
;
bChanged
=
TRUE
;
uChanged
|=
RBBIM_BACKGROUND
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_ID
)
&&
(
lpBand
->
wID
!=
lprbbi
->
wID
)
)
{
lpBand
->
wID
=
lprbbi
->
wID
;
bChanged
=
TRUE
;
uChanged
|=
RBBIM_ID
;
}
/* check for additional data */
...
...
@@ -1752,14 +1752,14 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
(
lpBand
->
cxIdeal
!=
lprbbi
->
cxIdeal
)
)
{
lpBand
->
cxIdeal
=
lprbbi
->
cxIdeal
;
bChanged
=
TRU
E
;
uChanged
|=
RBBIM_IDEALSIZ
E
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_LPARAM
)
&&
(
lpBand
->
lParam
!=
lprbbi
->
lParam
)
)
{
lpBand
->
lParam
=
lprbbi
->
lParam
;
bChanged
=
TRUE
;
uChanged
|=
RBBIM_LPARAM
;
}
if
(
(
lprbbi
->
fMask
&
RBBIM_HEADERSIZE
)
&&
...
...
@@ -1767,11 +1767,11 @@ REBAR_CommonSetupBand(HWND hwnd, const REBARBANDINFOW *lprbbi, REBAR_BAND *lpBan
{
lpBand
->
cxHeader
=
lprbbi
->
cxHeader
;
lpBand
->
fStyle
|=
RBBS_UNDOC_FIXEDHEADER
;
bChanged
=
TRU
E
;
uChanged
|=
RBBIM_HEADERSIZ
E
;
}
}
return
b
Changed
;
return
u
Changed
;
}
static
LRESULT
...
...
@@ -2635,7 +2635,7 @@ REBAR_SetBandInfoT(REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnic
{
LPREBARBANDINFOW
lprbbi
=
(
LPREBARBANDINFOW
)
lParam
;
REBAR_BAND
*
lpBand
;
BOOL
b
Changed
;
UINT
u
Changed
;
if
(
lprbbi
==
NULL
)
return
FALSE
;
...
...
@@ -2650,7 +2650,7 @@ REBAR_SetBandInfoT(REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnic
/* set band information */
lpBand
=
&
infoPtr
->
bands
[(
UINT
)
wParam
];
b
Changed
=
REBAR_CommonSetupBand
(
infoPtr
->
hwndSelf
,
lprbbi
,
lpBand
);
u
Changed
=
REBAR_CommonSetupBand
(
infoPtr
->
hwndSelf
,
lprbbi
,
lpBand
);
if
(
lprbbi
->
fMask
&
RBBIM_TEXT
)
{
LPWSTR
wstr
=
NULL
;
if
(
bUnicode
)
...
...
@@ -2661,7 +2661,7 @@ REBAR_SetBandInfoT(REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnic
if
(
REBAR_strdifW
(
wstr
,
lpBand
->
lpText
))
{
Free
(
lpBand
->
lpText
);
lpBand
->
lpText
=
wstr
;
bChanged
=
TRUE
;
uChanged
|=
RBBIM_TEXT
;
}
else
Free
(
wstr
);
...
...
@@ -2671,7 +2671,7 @@ REBAR_SetBandInfoT(REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam, BOOL bUnic
REBAR_DumpBand
(
infoPtr
);
if
(
bChanged
&&
(
lprbbi
->
fMask
&
(
RBBIM_CHILDSIZE
|
RBBIM_SIZE
|
RBBIM_STYLE
|
RBBIM_IMAGE
)
))
{
if
(
uChanged
&
(
RBBIM_CHILDSIZE
|
RBBIM_SIZE
|
RBBIM_STYLE
|
RBBIM_IMAGE
))
{
REBAR_Layout
(
infoPtr
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
0
,
1
);
}
...
...
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