参考地址:动态创建的 CTreeCtrl 实例的消息响应http://blog.csdn.net/yacper/article/details/5019153
BOOL CTreeBar::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult)
{
NMHDR* pNMHDR = (NMHDR*)lParam;
ASSERT(pNMHDR != NULL);
switch (pNMHDR->code)
{
case NM_CLICK:
// MessageBox("左键按下");
OnNMClickTree(pNMHDR,pResult);
break;
case NM_RCLICK:
// MessageBox("右键按下");
OnNMRclickTree(pNMHDR,pResult);
break;
default:
break;
}
return CDialogBar::OnNotify(wParam, lParam, pResult);
}
CTreeCtrl 使用心得
参考地址1:http://www.360doc.com/content/10/0627/15/799_35551565.shtml CTreeView
参考地址2:http://blog.sina.com.cn/s/blog_540aa4ec0100eaz9.html
http://wenku.baidu.com/view/47a56907cc17552707220859.html
http://wenku.baidu.com/view/bd85b62ce2bd960590c6776e.html
http://wenku.baidu.com/view/e182423467ec102de2bd89da.html
http://wenku.baidu.com/view/ff0b9b3331126edb6f1a1000.html
http://wenku.baidu.com/view/8d3c2ec508a1284ac85043eb.html
MFC 基本控件使用