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
15ca9ce6
Commit
15ca9ce6
authored
Jan 31, 2006
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jan 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Restore listview font on CDRF_NEWFONT.
parent
61708da1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
listview.c
dlls/comctl32/listview.c
+5
-1
No files found.
dlls/comctl32/listview.c
View file @
15ca9ce6
...
...
@@ -3677,6 +3677,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
NMLVCUSTOMDRAW
nmlvcd
;
HIMAGELIST
himl
;
LVITEMW
lvItem
;
HFONT
hOldFont
;
TRACE
(
"(hdc=%p, nItem=%d, nSubItem=%d, pos=%s)
\n
"
,
hdc
,
nItem
,
nSubItem
,
wine_dbgstr_point
(
&
pos
));
...
...
@@ -3699,7 +3700,7 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
/* now check if we need to update the focus rectangle */
lprcFocus
=
infoPtr
->
bFocus
&&
(
lvItem
.
state
&
LVIS_FOCUSED
)
?
&
infoPtr
->
rcFocus
:
0
;
if
(
!
lprcFocus
)
lvItem
.
state
&=
~
LVIS_FOCUSED
;
LISTVIEW_GetItemMetrics
(
infoPtr
,
&
lvItem
,
&
rcBox
,
&
rcState
,
&
rcIcon
,
&
rcLabel
);
OffsetRect
(
&
rcBox
,
pos
.
x
,
pos
.
y
);
...
...
@@ -3713,6 +3714,7 @@ 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
);
hOldFont
=
GetCurrentObject
(
hdc
,
OBJ_FONT
);
if
(
nSubItem
>
0
)
cdmode
=
infoPtr
->
cditemmode
;
if
(
cdmode
&
CDRF_NOTIFYITEMDRAW
)
cdsubitemmode
=
notify_customdraw
(
infoPtr
,
CDDS_PREPAINT
,
&
nmlvcd
);
...
...
@@ -3790,6 +3792,8 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
postpaint:
if
(
cdsubitemmode
&
CDRF_NOTIFYPOSTPAINT
)
notify_postpaint
(
infoPtr
,
&
nmlvcd
);
if
(
cdsubitemmode
&
CDRF_NEWFONT
)
SelectObject
(
hdc
,
hOldFont
);
return
TRUE
;
}
...
...
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