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
0a92c01a
Commit
0a92c01a
authored
Jul 20, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Don't invalidate list on LVM_SETBKCOLOR.
parent
43a199d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
listview.c
dlls/comctl32/listview.c
+8
-9
listview.c
dlls/comctl32/tests/listview.c
+1
-1
No files found.
dlls/comctl32/listview.c
View file @
0a92c01a
...
@@ -7913,30 +7913,29 @@ static BOOL LISTVIEW_Scroll(LISTVIEW_INFO *infoPtr, INT dx, INT dy)
...
@@ -7913,30 +7913,29 @@ static BOOL LISTVIEW_Scroll(LISTVIEW_INFO *infoPtr, INT dx, INT dy)
*
*
* PARAMETER(S):
* PARAMETER(S):
* [I] infoPtr : valid pointer to the listview structure
* [I] infoPtr : valid pointer to the listview structure
* [I] c
lrBk
: background color
* [I] c
olor
: background color
*
*
* RETURN:
* RETURN:
* SUCCESS : TRUE
* SUCCESS : TRUE
* FAILURE : FALSE
* FAILURE : FALSE
*/
*/
static
BOOL
LISTVIEW_SetBkColor
(
LISTVIEW_INFO
*
infoPtr
,
COLORREF
c
lrBk
)
static
BOOL
LISTVIEW_SetBkColor
(
LISTVIEW_INFO
*
infoPtr
,
COLORREF
c
olor
)
{
{
TRACE
(
"(c
lrBk=%x)
\n
"
,
clrBk
);
TRACE
(
"(c
olor=%x)
\n
"
,
color
);
if
(
infoPtr
->
clrBk
!=
c
lrBk
)
{
if
(
infoPtr
->
clrBk
!=
c
olor
)
{
if
(
infoPtr
->
clrBk
!=
CLR_NONE
)
DeleteObject
(
infoPtr
->
hBkBrush
);
if
(
infoPtr
->
clrBk
!=
CLR_NONE
)
DeleteObject
(
infoPtr
->
hBkBrush
);
infoPtr
->
clrBk
=
c
lrBk
;
infoPtr
->
clrBk
=
c
olor
;
if
(
c
lrBk
==
CLR_NONE
)
if
(
c
olor
==
CLR_NONE
)
infoPtr
->
hBkBrush
=
(
HBRUSH
)
GetClassLongPtrW
(
infoPtr
->
hwndSelf
,
GCLP_HBRBACKGROUND
);
infoPtr
->
hBkBrush
=
(
HBRUSH
)
GetClassLongPtrW
(
infoPtr
->
hwndSelf
,
GCLP_HBRBACKGROUND
);
else
else
{
{
infoPtr
->
hBkBrush
=
CreateSolidBrush
(
c
lrBk
);
infoPtr
->
hBkBrush
=
CreateSolidBrush
(
c
olor
);
infoPtr
->
dwLvExStyle
&=
~
LVS_EX_TRANSPARENTBKGND
;
infoPtr
->
dwLvExStyle
&=
~
LVS_EX_TRANSPARENTBKGND
;
}
}
LISTVIEW_InvalidateList
(
infoPtr
);
}
}
return
TRUE
;
return
TRUE
;
}
}
/* LISTVIEW_SetBkImage */
/* LISTVIEW_SetBkImage */
...
...
dlls/comctl32/tests/listview.c
View file @
0a92c01a
...
@@ -1793,7 +1793,7 @@ static void test_color(void)
...
@@ -1793,7 +1793,7 @@ static void test_color(void)
rect
.
right
=
rect
.
bottom
=
1
;
rect
.
right
=
rect
.
bottom
=
1
;
r
=
GetUpdateRect
(
hwnd
,
&
rect
,
TRUE
);
r
=
GetUpdateRect
(
hwnd
,
&
rect
,
TRUE
);
todo_wine
expect
(
FALSE
,
r
);
todo_wine
expect
(
FALSE
,
r
);
todo_wine
ok
(
rect
.
right
==
0
&&
rect
.
bottom
==
0
,
"got update rectangle
\n
"
);
ok
(
rect
.
right
==
0
&&
rect
.
bottom
==
0
,
"got update rectangle
\n
"
);
r
=
ValidateRect
(
hwnd
,
NULL
);
r
=
ValidateRect
(
hwnd
,
NULL
);
expect
(
TRUE
,
r
);
expect
(
TRUE
,
r
);
...
...
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