Markus Goemmel : comctl32/listview.c:
Ownerdraw font problem during focus change fixed.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jun 7 07:20:17 CDT 2007
Module: wine
Branch: master
Commit: 4b8d442477e7f762e3f36fffdd9fe447b7858879
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4b8d442477e7f762e3f36fffdd9fe447b7858879
Author: Markus Goemmel <m.goemmel at compulab.de>
Date: Wed Jun 6 12:51:50 2007 +0200
comctl32/listview.c: Ownerdraw font problem during focus change fixed.
---
dlls/comctl32/listview.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index ba94aec..7602217 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -1771,6 +1771,9 @@ static void LISTVIEW_ShowFocusRect(const LISTVIEW_INFO *infoPtr, BOOL fShow)
DRAWITEMSTRUCT dis;
LVITEMW item;
+ HFONT hFont = infoPtr->hFont ? infoPtr->hFont : infoPtr->hDefaultFont;
+ HFONT hOldFont = SelectObject(hdc, hFont);
+
item.iItem = infoPtr->nFocusedItem;
item.iSubItem = 0;
item.mask = LVIF_PARAM;
@@ -1788,6 +1791,8 @@ static void LISTVIEW_ShowFocusRect(const LISTVIEW_INFO *infoPtr, BOOL fShow)
dis.itemData = item.lParam;
SendMessageW(infoPtr->hwndNotify, WM_DRAWITEM, dis.CtlID, (LPARAM)&dis);
+
+ SelectObject(hdc, hOldFont);
}
else
{
More information about the wine-cvs
mailing list