处理TVN_SELCHANGED,在处理程序中按下面的方法做
...
{
  NMTREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
  // TODO: Add your control notification handler code here
  TVITEM tv = pNMTreeView->itemNew;
  CString strText = m_ptcFolder->GetItemText(tv.hItem);  *pResult = 0;
}