Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
feb32611
Commit
feb32611
authored
Oct 21, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix colors for selected items in full row select mode.
Fix bug caused by use of uninitialized state.
parent
7c26e53a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
listview.c
dlls/comctl32/listview.c
+10
-4
No files found.
dlls/comctl32/listview.c
View file @
feb32611
...
...
@@ -3284,10 +3284,13 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
if
(
uView
==
LVS_REPORT
)
lvItem
.
mask
|=
LVIF_INDENT
;
lvItem
.
stateMask
=
LVIS_SELECTED
|
LVIS_FOCUSED
|
LVIS_STATEIMAGEMASK
;
lvItem
.
iItem
=
nItem
;
lvItem
.
state
=
0
;
lvItem
.
iSubItem
=
nSubItem
;
lvItem
.
cchTextMax
=
DISP_TEXT_SIZE
;
lvItem
.
pszText
=
szDispText
;
if
(
!
LISTVIEW_GetItemW
(
infoPtr
,
&
lvItem
))
return
FALSE
;
if
(
nSubItem
>
0
&&
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
))
lvItem
.
state
=
LISTVIEW_GetItemState
(
infoPtr
,
nItem
,
LVIS_SELECTED
);
TRACE
(
" lvItem=%s
\n
"
,
debuglvitem_t
(
&
lvItem
,
TRUE
));
/* now check if we need to update the focus rectangle */
...
...
@@ -3310,9 +3313,8 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
if
(
lvItem
.
state
&
LVIS_FOCUSED
)
nmlvcd
.
nmcd
.
uItemState
|=
CDIS_FOCUS
;
if
(
lvItem
.
iItem
==
infoPtr
->
nHotItem
)
nmlvcd
.
nmcd
.
uItemState
|=
CDIS_HOT
;
nmlvcd
.
nmcd
.
lItemlParam
=
lvItem
.
lParam
;
if
((
lvItem
.
state
&
LVIS_SELECTED
)
&&
(
lvItem
.
iSubItem
==
0
||
(
uView
==
LVS_REPORT
&&
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
))))
if
(
lvItem
.
state
&
LVIS_SELECTED
)
{
if
(
infoPtr
->
bFocus
)
{
...
...
@@ -3348,9 +3350,13 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
if
(
infoPtr
->
hwndEdit
&&
lprcFocus
&&
nSubItem
==
0
)
goto
postpaint
;
/* Set the text attributes */
SetBkMode
(
hdc
,
nmlvcd
.
clrTextBk
==
CLR_NONE
?
TRANSPARENT
:
OPAQUE
);
if
(
nmlvcd
.
clrTextBk
!=
CLR_NONE
)
{
SetBkMode
(
hdc
,
OPAQUE
);
SetBkColor
(
hdc
,
nmlvcd
.
clrTextBk
==
CLR_DEFAULT
?
infoPtr
->
clrTextBkDefault
:
nmlvcd
.
clrTextBk
);
}
else
SetBkMode
(
hdc
,
TRANSPARENT
);
SetTextColor
(
hdc
,
nmlvcd
.
clrText
);
/* draw the selection background, if we're drawing the main item */
...
...
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