Module: wine Branch: master Commit: 4b741e8d2fc30a908e521615ea3bfb1647ab53f3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4b741e8d2fc30a908e521615ea...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Fri May 20 10:04:51 2011 +0400
comctl32/treeview: Always draw a '+' for TVIS_EXPANDPARTIAL state.
---
dlls/comctl32/treeview.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 42978d2..490f9b2 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);