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
8eb9e7eb
Commit
8eb9e7eb
authored
Nov 27, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Draw LVIS_CUT items with white foreground color.
parent
99981056
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
listview.c
dlls/comctl32/listview.c
+13
-5
No files found.
dlls/comctl32/listview.c
View file @
8eb9e7eb
...
...
@@ -74,7 +74,6 @@
*
* States
* -- LVIS_ACTIVATING (not currently supported by comctl32.dll version 6.0)
* -- LVIS_CUT
* -- LVIS_DROPHILITED
* -- LVIS_OVERLAYMASK
*
...
...
@@ -4439,7 +4438,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
lvItem
.
mask
=
LVIF_TEXT
|
LVIF_IMAGE
|
LVIF_PARAM
;
if
(
nSubItem
==
0
)
lvItem
.
mask
|=
LVIF_STATE
;
if
(
infoPtr
->
uView
==
LV_VIEW_DETAILS
)
lvItem
.
mask
|=
LVIF_INDENT
;
lvItem
.
stateMask
=
LVIS_SELECTED
|
LVIS_FOCUSED
|
LVIS_STATEIMAGEMASK
;
lvItem
.
stateMask
=
LVIS_SELECTED
|
LVIS_FOCUSED
|
LVIS_STATEIMAGEMASK
|
LVIS_CUT
;
lvItem
.
iItem
=
nItem
;
lvItem
.
iSubItem
=
nSubItem
;
lvItem
.
state
=
0
;
...
...
@@ -4542,14 +4541,23 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
}
}
/*
small
icons */
/*
item
icons */
himl
=
(
infoPtr
->
uView
==
LV_VIEW_ICON
?
infoPtr
->
himlNormal
:
infoPtr
->
himlSmall
);
if
(
himl
&&
lvItem
.
iImage
>=
0
&&
!
IsRectEmpty
(
&
rcIcon
))
{
UINT
style
;
TRACE
(
"iImage=%d
\n
"
,
lvItem
.
iImage
);
if
(
lvItem
.
state
&
(
LVIS_SELECTED
|
LVIS_CUT
)
&&
infoPtr
->
bFocus
)
style
=
ILD_SELECTED
;
else
style
=
ILD_NORMAL
;
ImageList_DrawEx
(
himl
,
lvItem
.
iImage
,
hdc
,
rcIcon
.
left
,
rcIcon
.
top
,
rcIcon
.
right
-
rcIcon
.
left
,
rcIcon
.
bottom
-
rcIcon
.
top
,
infoPtr
->
clrBk
,
CLR_DEFAULT
,
(
lvItem
.
state
&
LVIS_SELECTED
)
&&
(
infoPtr
->
bFocus
)
?
ILD_SELECTED
:
ILD_NORMAL
);
rcIcon
.
right
-
rcIcon
.
left
,
rcIcon
.
bottom
-
rcIcon
.
top
,
infoPtr
->
clrBk
,
lvItem
.
state
&
LVIS_CUT
?
RGB
(
255
,
255
,
255
)
:
CLR_DEFAULT
,
style
);
}
/* Don't bother painting item being edited */
...
...
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