[PATCH 2/2] regedit: Add 'Expand' and 'Collapse' options to the treeview pop-up menu

Nikolay Sivov bunglehead at gmail.com
Wed May 24 03:41:09 CDT 2017


On 24.05.2017 11:21, Hugh McMaster wrote:
> +    case ID_TREE_EXPAND:
> +    {
> +        HTREEITEM selected = (HTREEITEM)SendMessageW(g_pChildWnd->hTreeWnd, TVM_GETNEXTITEM, TVGN_CARET, 0);
> +        SendMessageW(g_pChildWnd->hTreeWnd, TVM_EXPAND, TVE_TOGGLE, (LPARAM)selected);
> +        break;
> +    }

Maybe it's better to name it ID_TREE_EXPAND_COLLAPSE, since it does not
only expand.



More information about the wine-devel mailing list