自己正在编写个资源管理器的窗口,在树形视图中,但是一旦相应这个函数时,执行时就出现无法响应,应用程序就卡死了,为什么呢?
void CSplitdown1View::OnSelchanging(NMHDR* pNMHDR, LRESULT* pResult) 
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
// TODO: Add your control notification handler code here
 
 HTREEITEM hItem=pNMTreeView->itemNew.hItem;
CString strPathName =GetPathFromItem(hItem);
*pResult = FALSE;
if(strPathName ==MYCOMPUTER)
return;
CWaitCursor wait;
if(!AddDirectoryNodes(hItem,strPathName ))
*pResult = true;
 m_LocalPath=strPathName ;
  *pResult = 0;
}