如题 ctreectl 控件 扩展某个节点时 如何获得该节点句柄HTREEITEM
注:扩展的此节点未被选中 这种情况下 如何获得该节点的HTREEITEM呢
------解决方案--------------------------------------------------------
帮你查查MSDN关于TVN_EXPANDING的段落,你看看吧:
TVN_ITEMEXPANDING
pnmtv = (LPNMTREEVIEW) lParam
Parameters
pnmtv
Pointer to an NMTREEVIEW structure. The itemNew member is a TVITEM structure that contains valid information about the parent item in the hItem, state, and lParam members. The action member indicates whether the list is to expand or collapse. For a list of possible values, see the description of the TVM_EXPAND message.