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
7fa3778d
Commit
7fa3778d
authored
Dec 23, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/rebar: Fix default just inserted band colors.
parent
80ed866f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
rebar.c
dlls/comctl32/rebar.c
+4
-2
rebar.c
dlls/comctl32/tests/rebar.c
+19
-2
No files found.
dlls/comctl32/rebar.c
View file @
7fa3778d
...
...
@@ -2409,8 +2409,10 @@ REBAR_InsertBandT(REBAR_INFO *infoPtr, INT iIndex, LPREBARBANDINFOW lprbbi, BOOL
/* initialize band */
memset
(
lpBand
,
0
,
sizeof
(
lpBand
));
lpBand
->
clrFore
=
infoPtr
->
clrText
;
lpBand
->
clrBack
=
infoPtr
->
clrBk
;
lpBand
->
clrFore
=
infoPtr
->
clrText
==
CLR_NONE
?
infoPtr
->
clrBtnText
:
infoPtr
->
clrText
;
lpBand
->
clrBack
=
infoPtr
->
clrBk
==
CLR_NONE
?
infoPtr
->
clrBtnFace
:
infoPtr
->
clrBk
;
lpBand
->
iImage
=
-
1
;
REBAR_CommonSetupBand
(
infoPtr
->
hwndSelf
,
lprbbi
,
lpBand
);
...
...
dlls/comctl32/tests/rebar.c
View file @
7fa3778d
...
...
@@ -764,8 +764,8 @@ static void expect_band_content(HWND hRebar, UINT uBand, INT fStyle, COLORREF cl
rb
.
cch
=
MAX_PATH
;
ok
(
SendMessageA
(
hRebar
,
RB_GETBANDINFOA
,
uBand
,
(
LPARAM
)
&
rb
),
"RB_GETBANDINFO failed
\n
"
);
expect_eq
(
rb
.
fStyle
,
fStyle
,
int
,
"%x"
);
todo_wine
expect_eq
(
rb
.
clrFore
,
clrFore
,
COLORREF
,
"%x"
);
todo_wine
expect_eq
(
rb
.
clrBack
,
clrBack
,
unsigned
,
"%x"
);
expect_eq
(
rb
.
clrFore
,
clrFore
,
COLORREF
,
"%x"
);
expect_eq
(
rb
.
clrBack
,
clrBack
,
COLORREF
,
"%x"
);
expect_eq
(
strcmp
(
rb
.
lpText
,
lpText
),
0
,
int
,
"%d"
);
expect_eq
(
rb
.
iImage
,
iImage
,
int
,
"%x"
);
expect_eq
(
rb
.
hwndChild
,
hwndChild
,
HWND
,
"%p"
);
...
...
@@ -850,6 +850,7 @@ static void test_colors(void)
COLORREF
clr
;
BOOL
ret
;
HWND
hRebar
;
REBARBANDINFOA
bi
;
hRebar
=
create_rebar_control
();
...
...
@@ -871,6 +872,22 @@ static void test_colors(void)
else
skip
(
"RB_GETCOLORSCHEME not supported
\n
"
);
/* check default band colors */
add_band_w
(
hRebar
,
""
,
0
,
10
,
10
);
bi
.
cbSize
=
REBARBANDINFOA_V6_SIZE
;
bi
.
fMask
=
RBBIM_COLORS
;
bi
.
clrFore
=
bi
.
clrBack
=
0xc0ffe
;
ret
=
SendMessage
(
hRebar
,
RB_GETBANDINFO
,
0
,
(
LPARAM
)
&
bi
);
ok
(
ret
,
"RB_GETBANDINFO failed
\n
"
);
compare
(
bi
.
clrFore
,
RGB
(
0
,
0
,
0
),
"%x"
);
compare
(
bi
.
clrBack
,
GetSysColor
(
COLOR_3DFACE
),
"%x"
);
SendMessage
(
hRebar
,
RB_SETTEXTCOLOR
,
0
,
RGB
(
255
,
0
,
0
));
bi
.
clrFore
=
bi
.
clrBack
=
0xc0ffe
;
ret
=
SendMessage
(
hRebar
,
RB_GETBANDINFO
,
0
,
(
LPARAM
)
&
bi
);
ok
(
ret
,
"RB_GETBANDINFO failed
\n
"
);
compare
(
bi
.
clrFore
,
RGB
(
0
,
0
,
0
),
"%x"
);
DestroyWindow
(
hRebar
);
}
...
...
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