首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VC >

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

2012-01-05 
ctreectl 控件扩展某个节点时 如何获得该节点句柄HTREEITEM如题ctreectl 控件扩展某个节点时 如何获得该节

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. 

热点排行