读书人

ctreectl 控件 扩展某个节点时 怎么获

发布时间: 2012-01-05 22:36:54 作者: rapoo

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.

读书人网 >VC

热点推荐