Commit 382dc1de authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/treeview: Fill full row for TVS_FULLROWSELECT style.

parent 9efcbd11
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* missing notifications: TVN_GETINFOTIP, TVN_KEYDOWN, * missing notifications: TVN_GETINFOTIP, TVN_KEYDOWN,
* TVN_SETDISPINFO * TVN_SETDISPINFO
* *
* missing styles: TVS_FULLROWSELECT, TVS_INFOTIP, TVS_RTLREADING, * missing styles: TVS_INFOTIP, TVS_RTLREADING,
* *
* missing item styles: TVIS_EXPANDPARTIAL, TVIS_EX_FLAT, * missing item styles: TVIS_EXPANDPARTIAL, TVIS_EX_FLAT,
* TVIS_EX_DISABLED * TVIS_EX_DISABLED
...@@ -2577,6 +2577,13 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item) ...@@ -2577,6 +2577,13 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
if (cditem & CDRF_NEWFONT) if (cditem & CDRF_NEWFONT)
TREEVIEW_ComputeTextWidth(infoPtr, item, hdc); TREEVIEW_ComputeTextWidth(infoPtr, item, hdc);
if (TREEVIEW_IsFullRowSelect(infoPtr))
{
HBRUSH brush = CreateSolidBrush(nmcdhdr.clrTextBk);
FillRect(hdc, &item->rect, brush);
DeleteObject(brush);
}
TREEVIEW_DrawItemLines(infoPtr, hdc, item); TREEVIEW_DrawItemLines(infoPtr, hdc, item);
/* Set colors. Custom draw handler can change these so we do this after it. */ /* Set colors. Custom draw handler can change these so we do this after it. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment