From 4b741e8d2fc30a908e521615ea3bfb1647ab53f3 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 20 May 2011 10:04:51 +0400 Subject: [PATCH] comctl32/treeview: Always draw a '+' for TVIS_EXPANDPARTIAL state. --- dlls/comctl32/treeview.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 42978d2cce4..490f9b23a48 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -2453,7 +2453,8 @@ TREEVIEW_DrawItemLines(const TREEVIEW_INFO *infoPtr, HDC hdc, const TREEVIEW_ITE MoveToEx(hdc, centerx - plussize + 1, centery, NULL); LineTo(hdc, centerx + plussize, centery); - if (!(item->state & TVIS_EXPANDED)) + if (!(item->state & TVIS_EXPANDED) || + (item->state & TVIS_EXPANDPARTIAL)) { MoveToEx(hdc, centerx, centery - plussize + 1, NULL); LineTo(hdc, centerx, centery + plussize); @@ -2463,8 +2464,9 @@ TREEVIEW_DrawItemLines(const TREEVIEW_INFO *infoPtr, HDC hdc, const TREEVIEW_ITE { Rectangle(hdc, centerx - plussize + 1, centery - 1, centerx + plussize, centery + 2); - - if (!(item->state & TVIS_EXPANDED)) + + if (!(item->state & TVIS_EXPANDED) || + (item->state & TVIS_EXPANDPARTIAL)) { Rectangle(hdc, centerx - 1, centery - plussize + 1, centerx + 2, centery + plussize);