当前位置: 代码迷 >> VC >> ctreectl 控件 扩展某个节点时 怎么获得该节点句柄HTREEITEM
  详细解决方案

ctreectl 控件 扩展某个节点时 怎么获得该节点句柄HTREEITEM

热度:7537   发布时间:2013-02-25 00:00:00.0
ctreectl 控件 扩展某个节点时 如何获得该节点句柄HTREEITEM
如题 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.