mirror of
https://github.com/reactos/wine.git
synced 2025-02-03 10:43:30 +00:00
comctl32/listview.c: Ownerdraw font problem during focus change fixed.
This commit is contained in:
parent
a2db0b83f7
commit
4b8d442477
@ -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…
x
Reference in New Issue
Block a user