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
66855d4a
Commit
66855d4a
authored
May 22, 2003
by
Maxime Bellengé
Committed by
Alexandre Julliard
May 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix listview custom draw notification for CDDS_ITEMPREPAINT and
CDDS_SUBITEMPREPAINT messages.
parent
95f7c6c8
Hide 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 @
66855d4a
...
...
@@ -272,6 +272,8 @@ typedef struct tagLISTVIEW_INFO
DWORD
dwHoverTime
;
HWND
hwndToolTip
;
DWORD
cditemmode
;
/* Keep the custom draw flags for an item/row */
DWORD
lastKeyPressTimestamp
;
WPARAM
charCode
;
INT
nSearchParamLength
;
...
...
@@ -3526,7 +3528,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
UINT
uFormat
,
uView
=
infoPtr
->
dwStyle
&
LVS_TYPEMASK
;
WCHAR
szDispText
[
DISP_TEXT_SIZE
]
=
{
'\0'
};
WCHAR
szCallback
[]
=
{
'('
,
'c'
,
'a'
,
'l'
,
'l'
,
'b'
,
'a'
,
'c'
,
'k'
,
')'
,
0
};
DWORD
cditemmode
=
CDRF_DODEFAULT
;
DWORD
cd
sub
itemmode
=
CDRF_DODEFAULT
;
RECT
*
lprcFocus
,
rcSelect
,
rcBox
,
rcState
,
rcIcon
,
rcLabel
;
NMLVCUSTOMDRAW
nmlvcd
;
HIMAGELIST
himl
;
...
...
@@ -3566,9 +3568,11 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
/* fill in the custom draw structure */
customdraw_fill
(
&
nmlvcd
,
infoPtr
,
hdc
,
&
rcBox
,
&
lvItem
);
if
(
nSubItem
>
0
)
cdmode
=
infoPtr
->
cditemmode
;
if
(
cdmode
&
CDRF_NOTIFYITEMDRAW
)
cditemmode
=
notify_prepaint
(
infoPtr
,
hdc
,
&
nmlvcd
);
if
(
cditemmode
&
CDRF_SKIPDEFAULT
)
goto
postpaint
;
cdsubitemmode
=
notify_prepaint
(
infoPtr
,
hdc
,
&
nmlvcd
);
if
(
nSubItem
==
0
)
infoPtr
->
cditemmode
=
cdsubitemmode
;
if
(
cdsubitemmode
&
CDRF_SKIPDEFAULT
)
goto
postpaint
;
/* in full row select, subitems, will just use main item's colors */
if
(
nSubItem
&&
uView
==
LVS_REPORT
&&
(
infoPtr
->
dwLvExStyle
&
LVS_EX_FULLROWSELECT
))
...
...
@@ -3631,7 +3635,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
DrawTextW
(
hdc
,
lvItem
.
pszText
,
-
1
,
&
rcLabel
,
uFormat
);
postpaint:
if
(
cditemmode
&
CDRF_NOTIFYPOSTPAINT
)
if
(
cd
sub
itemmode
&
CDRF_NOTIFYPOSTPAINT
)
notify_postpaint
(
infoPtr
,
&
nmlvcd
);
return
TRUE
;
}
...
...
@@ -3841,6 +3845,8 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc)
oldClrTextBk
=
infoPtr
->
clrTextBk
;
oldClrText
=
infoPtr
->
clrText
;
infoPtr
->
cditemmode
=
CDRF_DODEFAULT
;
GetClientRect
(
infoPtr
->
hwndSelf
,
&
rcClient
);
customdraw_fill
(
&
nmlvcd
,
infoPtr
,
hdc
,
&
rcClient
,
0
);
cdmode
=
notify_prepaint
(
infoPtr
,
hdc
,
&
nmlvcd
);
...
...
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