[PATCH 2/2] regedit: Add 'Expand' and 'Collapse' options to the treeview pop-up menu
Hugh McMaster
hugh.mcmaster at outlook.com
Wed May 24 04:29:58 CDT 2017
On Wednesday, 24 May 2017 6:41 PM, Nikolay Sivov wrote:
> 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.
Sure. That makes it perfectly clear.
Thanks.
More information about the wine-devel
mailing list