Thursday, April 10, 2008

Get selected item in Tree control

Get selected item in Treecontrol


HTREEITEM hCurrent = m_tree.GetNextItem(TVI_ROOT, TVGN_CARET);
CString strName= m_tree.GetItemText(hCurrent);
UINT nData= m_tree.Data(hCurrent);

No comments:

Post a Comment