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.