explorerframe: Allow treeview expandos to open with a single click.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Andrew Eikum 2015-10-20 11:43:13 -05:00 committed by Alexandre Julliard
parent a3af13614f
commit 5bbdcaaa16
1 changed files with 2 additions and 2 deletions

View File

@ -686,9 +686,9 @@ static LRESULT on_nm_click(NSTC2Impl *This, NMHDR *nmhdr)
psi = shellitem_from_treeitem(This, tvhit.hItem);
hr = events_OnItemClick(This, psi, tvhit.flags, NSTCECT_LBUTTON);
/* The expando should not be expanded unless
/* The label should not be expanded unless
* double-clicked. */
if(tvhit.flags == TVHT_ONITEMBUTTON)
if(tvhit.flags == TVHT_ONITEMLABEL)
return TRUE;
if(SUCCEEDED(hr))