代码如下:
HICON hicon[2];
hicon[0]=AfxGetApp()->LoadIcon(IDI_ICON1);
hicon[1]=AfxGetApp()->LoadIcon(IDI_ICON2); imagelist.Create(16,16,0,1,1);
imagelist.Add(hicon[0]);
imagelist.Add(hicon[1]);
m_tree.SetImageList(&imagelist,TVSIL_NORMAL);
HTREEITEM parent ;
parent= m_tree.InsertItem("根节点",0,1);
m_tree.InsertItem("子节点",0,1,parent);
HICON hicon[2];
hicon[0]=AfxGetApp()->LoadIcon(IDI_ICON1);
hicon[1]=AfxGetApp()->LoadIcon(IDI_ICON2); imagelist.Create(16,16,0,1,1);
imagelist.Add(hicon[0]);
imagelist.Add(hicon[1]);
m_tree.SetImageList(&imagelist,TVSIL_NORMAL);
HTREEITEM parent ;
parent= m_tree.InsertItem("根节点",0,1);
m_tree.InsertItem("子节点",0,1,parent);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货