1、
HTREEITEM hTreeCurrent;
hTreeCurrent=m_TreeDep.GetSelectedItem();
m_TreeDep.GetParentItem(hTreeCurrent);
2、
CHeaderCtrl *header=m_List.GetHeaderCtrl();
int iCols=header->GetItemCount();
CString s;
HDITEM hditem;
char Buffer[256]={0};
TRACE("/n");
for(int i=0;i<iCols;i++)
{
hditem.mask=HDI_TEXT;
hditem.cchTextMax=256;
hditem.pszText=Buffer;
header->GetItem(i,&hditem);
s.Format("第%d列 标题:%s/n",i,Buffer);
TRACE(s);
}
int iCols=header->GetItemCount();
CString s;
HDITEM hditem;
char Buffer[256]={0};
TRACE("/n");
for(int i=0;i<iCols;i++)
{
hditem.mask=HDI_TEXT;
hditem.cchTextMax=256;
hditem.pszText=Buffer;
header->GetItem(i,&hditem);
s.Format("第%d列 标题:%s/n",i,Buffer);
TRACE(s);
}
3、