CTreeCtrl::GetItemState UINT GetItemState( HTREEITEM hItem, UINT nStateMask ) const;Return ValueA UINT specifying the item’s state. For information on possible values, see CTreeCtrl::GetItem.ParametershItemHandle of the item whose state is to be retrieved.nStateMaskMask indicating which states are to be retrieved. For more information on possible values for nStateMask, see the discussion of the state and stateMask members of theTVITEM structure in the Platform SDK.ResReturns the state of the item specified by hItem
下面可能有你需要的,很不错的
http://www.codeproject.com/treectrl/
http://www.vckbase.com/code/listcode.asp?mclsid=3&sclsid=321
http://www.codeguru.com/treeview/index.shtml
UINT GetItemState( HTREEITEM hItem, UINT nStateMask ) const;Return ValueA UINT specifying the item’s state. For information on possible values, see CTreeCtrl::GetItem.ParametershItemHandle of the item whose state is to be retrieved.nStateMaskMask indicating which states are to be retrieved. For more information on possible values for nStateMask, see the discussion of the state and stateMask members of theTVITEM structure in the Platform SDK.ResReturns the state of the item specified by hItem
OnKeyDown那里检查 VKSPACE