Thursday, April 10, 2008

Get selected item in Tree control

Get selected item in Tree control

HTREEITEM hCurrent = m_tree.GetNextItem(TVI_ROOT, TVGN_CARET);
While(hCurrent)
{
//do your code here
hCurrent = m_tree. GetNextItem(hCurrent, TVGN_NEXT);
}

No comments:

Post a Comment