Nikolay Sivov : comctl32/treeview: Fill full row for TVS_FULLROWSELECT style.
Alexandre Julliard
julliard at winehq.org
Mon Aug 22 10:24:13 CDT 2016
Module: wine
Branch: master
Commit: 382dc1ded8e13bb5d15d6d18e238b66f0997dffd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=382dc1ded8e13bb5d15d6d18e238b66f0997dffd
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Aug 22 12:50:14 2016 +0300
comctl32/treeview: Fill full row for TVS_FULLROWSELECT style.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/treeview.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 55e22e2..117b309 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -31,7 +31,7 @@
* missing notifications: TVN_GETINFOTIP, TVN_KEYDOWN,
* TVN_SETDISPINFO
*
- * missing styles: TVS_FULLROWSELECT, TVS_INFOTIP, TVS_RTLREADING,
+ * missing styles: TVS_INFOTIP, TVS_RTLREADING,
*
* missing item styles: TVIS_EXPANDPARTIAL, TVIS_EX_FLAT,
* TVIS_EX_DISABLED
@@ -2577,6 +2577,13 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
if (cditem & CDRF_NEWFONT)
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);
/* Set colors. Custom draw handler can change these so we do this after it. */
More information about the wine-cvs
mailing list