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
3dd4dabf
Commit
3dd4dabf
authored
Oct 16, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 16, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remember the global colors in custom draw mode.
parent
ef9adbb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
listview.c
dlls/comctl32/listview.c
+11
-2
No files found.
dlls/comctl32/listview.c
View file @
3dd4dabf
...
...
@@ -3471,7 +3471,7 @@ static void LISTVIEW_RefreshList(LISTVIEW_INFO *infoPtr, HDC hdc, DWORD cdmode)
static
void
LISTVIEW_Refresh
(
LISTVIEW_INFO
*
infoPtr
,
HDC
hdc
)
{
UINT
uView
=
infoPtr
->
dwStyle
&
LVS_TYPEMASK
;
COLORREF
oldTextColor
;
COLORREF
oldTextColor
,
oldClrTextBk
,
oldClrText
;
NMLVCUSTOMDRAW
nmlvcd
;
HFONT
hOldFont
;
DWORD
cdmode
;
...
...
@@ -3487,12 +3487,19 @@ static void LISTVIEW_Refresh(LISTVIEW_INFO *infoPtr, HDC hdc)
oldBkMode
=
GetBkMode
(
hdc
);
infoPtr
->
clrTextBkDefault
=
GetBkColor
(
hdc
);
oldTextColor
=
GetTextColor
(
hdc
);
oldClrTextBk
=
infoPtr
->
clrTextBk
;
oldClrText
=
infoPtr
->
clrText
;
GetClientRect
(
infoPtr
->
hwndSelf
,
&
rcClient
);
customdraw_fill
(
&
nmlvcd
,
infoPtr
,
hdc
,
&
rcClient
,
NULL
);
cdmode
=
notify_customdraw
(
infoPtr
,
CDDS_PREPAINT
,
&
nmlvcd
);
if
(
cdmode
&
CDRF_SKIPDEFAULT
)
goto
enddraw
;
/* Use these colors to draw the items */
infoPtr
->
clrTextBk
=
nmlvcd
.
clrTextBk
;
infoPtr
->
clrText
=
nmlvcd
.
clrText
;
/* nothing to draw */
if
(
infoPtr
->
nItemCount
==
0
)
goto
enddraw
;
...
...
@@ -3514,7 +3521,9 @@ enddraw:
if
(
cdmode
&
CDRF_NOTIFYPOSTPAINT
)
notify_customdraw
(
infoPtr
,
CDDS_POSTPAINT
,
&
nmlvcd
);
/* unselect objects */
infoPtr
->
clrTextBk
=
oldClrTextBk
;
infoPtr
->
clrText
=
oldClrText
;
SelectObject
(
hdc
,
hOldFont
);
SetBkMode
(
hdc
,
oldBkMode
);
SetBkColor
(
hdc
,
infoPtr
->
clrTextBkDefault
);
...
...
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