CTreeCtrl 响应鼠标消息的疑问?望高手赐教!
void CMyTree::OnClick(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here
HTREEITEM hSel=this->GetSelectedItem();//取得选项句柄;
if(hSel==NULL) return;//无任何选项则返回
CString cText=this->GetItemText(hSel);//取得数据项名
AfxMessageBox(cText);
*pResult = 0;
}
弹出的对话框所显示的文本总是错位(其他选项的text??