Re: [PATCH 2/2] regedit: Add 'Expand' and 'Collapse' options to the treeview pop-up menu
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.
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.
participants (2)
-
Hugh McMaster -
Nikolay Sivov