LRESULT OnCreate(...)
{
int nSmallCx = ::GetSystemMetrics(SM_CXSMICON);
int nSmallCy = ::GetSystemMetrics(SM_CYSMICON);
m_ImgList.Create(nSmallCx, nSmallCy, ILC_MASK|ILC_COLOR32, 0, 1);
m_treeview.SetImageList(m_ImgList);
}
//往Treeview添加节点,图标从指定exe或dll文件获取,如果获取失败,使用指定序号图标
温馨提示:答案为网友推荐,仅供参考