
voila, j'utilise une CTree.. avec affichage d'icone (comme dans l'exploreur).
le probleme, c'est que j'arrive pas a changer l'icone quand on develloppe un item:
void CProjet4View::OnInitialUpdate()
{
CTreeView::OnInitialUpdate();
CTreeCtrl& tree = GetTreeCtrl();
m_imageList.Create(IDB_BMP,14,1,RGB(255,255,255));
tree.SetImageList(&m_imageList, TVSIL_NORMAL);
HTREEITEM h1 = tree.InsertItem("Essai",0,0);
tree.InsertItem("azeé",1,0,h1);
HTREEITEM h2 = tree.InsertItem("Essai",0,0);
tree.InsertItem("azeé",1,0,h2);
}
please help me!!