comctl32: Allow expanding/collapsing treeview nodes multiple times.

This commit is contained in:
Daniel Jelinski 2012-10-12 21:33:17 +02:00 committed by Alexandre Julliard
parent ba4b88bc00
commit 06d284cabb

View File

@ -5238,13 +5238,11 @@ TREEVIEW_KeyDown(TREEVIEW_INFO *infoPtr, WPARAM wParam)
break;
case VK_ADD:
if (!(prevItem->state & TVIS_EXPANDED))
TREEVIEW_Expand(infoPtr, prevItem, FALSE, TRUE);
TREEVIEW_Expand(infoPtr, prevItem, FALSE, TRUE);
break;
case VK_SUBTRACT:
if (prevItem->state & TVIS_EXPANDED)
TREEVIEW_Collapse(infoPtr, prevItem, FALSE, TRUE);
TREEVIEW_Collapse(infoPtr, prevItem, FALSE, TRUE);
break;
case VK_PRIOR: