mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
comctl32/listview.c: Ownerdraw font problem during focus change fixed.
This commit is contained in:
parent
a2db0b83f7
commit
4b8d442477
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue