comctl32/treeview: Always draw a '+' for TVIS_EXPANDPARTIAL state.

This commit is contained in:
Nikolay Sivov 2011-05-20 10:04:51 +04:00 committed by Alexandre Julliard
parent e2e98ae36f
commit 4b741e8d2f
1 changed files with 5 additions and 3 deletions

View File

@ -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);
@ -2464,7 +2465,8 @@ 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);