自定义了类Ctreectrl基于CTreeCtrl,在处理消息函数时
我想得到数据,怎么做??如下:
void Ctreectrl::OnSelchanging(NMHDR* pNMHDR, LRESULT* pResult) 
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
     HTREEITEM hSelected = pNMTreeView->itemNew.hItem;
    CProject13Doc* pDoc = (CProject13Doc*)doc.GetDocument();
CString hParentName;
HTREEITEM hParent=GetParentItem(hSelected);
    if(hSelected!=NULL)
{
  pDoc->name=GetItemText(hSelected);
     }
// TODO: Add your control notification handler code here

*pResult = 0;
}
在上面的代码中,编译时有错!!
G:\新建文件夹2\project13\Mytree.cpp(21) : error C2248: 'CProject13Doc::CProject13Doc' : cannot access protected member declared in class 'CProject13Doc'
怎么回事??帮忙!!!