hi all

iam not able to view the images loaded in the tree

but the space for the image is allocated but can not view it

i have added a bitmap and also created the imagelist but iam not able to

view it....

CImageList m_TreeImg;
m_TreeImg.Create(IDB_BITMAP, 16, 5, RGB(255, 255, 255));
m_Tree.SetImageList(&m_TreeImg, TVSIL_NORMAL);

HTREEITEM hCompany, hOffice, hProg, hOperSys, hProd;
hCompany = m_Tree.InsertItem("Microsoft", 0, 5, TVI_ROOT);
hOperSys = m_Tree.InsertItem("Windows 9x", 5, 1, hCompany);
hOperSys = m_Tree.InsertItem("Windows NT", 5, 1, hCompany);
hOffice = m_Tree.InsertItem("Office 97", 1, 4, hCompany);

hProd = m_Tree.InsertItem("Word", 2, 3, hOffice);
hProd = m_Tree.InsertItem("Access", 2, 3, hOffice);
hProd = m_Tree.InsertItem("Excel", 2, 3, hOffice);
hProd = m_Tree.InsertItem("OutLook", 2, 3, hOffice);
hProd = m_Tree.InsertItem("PowerPoint", 2, 3, hOffice);

hProg = m_Tree.InsertItem("Visual C++", 3, 4, hCompany);
hProg = m_Tree.InsertItem("Visual Basic", 3, 4, hCompany);
hProg = m_Tree.InsertItem("Visual FoxPro", 3, 4, hCompany);
hProg = m_Tree.InsertItem("Visual Interdev", 3, 4, hCompany);


and so on....

Every thing is perfect

only thing i cannot view the images even it has allocated the space for the image b4 the text of the tree items....