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
80f70b5d
Commit
80f70b5d
authored
Feb 09, 2013
by
Daniel Jelinski
Committed by
Alexandre Julliard
Feb 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Better handling of custom colors in report view.
parent
ced916b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
listview.c
dlls/comctl32/listview.c
+16
-14
No files found.
dlls/comctl32/listview.c
View file @
80f70b5d
...
...
@@ -4634,21 +4634,25 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
else
if
((
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
)
==
FALSE
)
prepaint_setup
(
infoPtr
,
hdc
,
&
nmlvcd
,
TRUE
);
/* in full row select, subitems, will just use main item's colors */
if
(
nSubItem
&&
infoPtr
->
uView
==
LV_VIEW_DETAILS
&&
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
))
nmlvcd
.
clrTextBk
=
CLR_NONE
;
/* FIXME: temporary hack */
rcSelect
.
left
=
rcLabel
.
left
;
/* draw the selection background, if we're drawing the main item */
if
(
nSubItem
==
0
)
{
/* in icon mode, the label rect is really what we want to draw the
* background for */
if
(
infoPtr
->
uView
==
LV_VIEW_ICON
)
rcSelect
=
rcLabel
;
/* in icon mode, the label rect is really what we want to draw the
* background for */
/* in detail mode, we want to paint background for label rect when
* item is not selected or listview has full row select; otherwise paint
* background for text only */
if
(
infoPtr
->
uView
==
LV_VIEW_ICON
||
(
infoPtr
->
uView
==
LV_VIEW_DETAILS
&&
(
!
(
lvItem
.
state
&
LVIS_SELECTED
)
||
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
)
!=
0
)))
rcSelect
=
rcLabel
;
if
(
nmlvcd
.
clrTextBk
!=
CLR_NONE
)
ExtTextOutW
(
hdc
,
rcSelect
.
left
,
rcSelect
.
top
,
ETO_OPAQUE
,
&
rcSelect
,
NULL
,
0
,
NULL
);
if
(
nSubItem
==
0
&&
infoPtr
->
nFocusedItem
==
nItem
)
{
if
(
infoPtr
->
uView
==
LV_VIEW_DETAILS
&&
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
))
{
/* we have to update left focus bound too if item isn't in leftmost column
...
...
@@ -4671,10 +4675,8 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
rcSelect
.
right
=
rcBox
.
right
;
}
if
(
nmlvcd
.
clrTextBk
!=
CLR_NONE
)
ExtTextOutW
(
hdc
,
rcSelect
.
left
,
rcSelect
.
top
,
ETO_OPAQUE
,
&
rcSelect
,
NULL
,
0
,
NULL
);
/* store new focus rectangle */
if
(
infoPtr
->
nFocusedItem
==
nItem
)
infoPtr
->
rcFocus
=
rcSelect
;
infoPtr
->
rcFocus
=
rcSelect
;
}
/* state icons */
...
...
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