Problem with CTreeCtrl::SetImageList()
- From: "Drew" <dam@xxxxxxx>
- Date: Wed, 4 Apr 2007 13:40:16 -0500
I have a class derived from CTreeCtrl that I would like to change
the images of using SetImageList(). Code in OnInitDialog() of the
class that has the CTreeCtrl as a member:
CBitmap bmp;
int res;
CImageList* img;
res = bmp.LoadBitmap(IDB_IMAGE_BITMAP);
m_imglist = new CImageList;
res = m_imglist->Create(16, 14, ILC_COLOR24, 1, 0);
res = m_imglist->Add(&bmp, RGB(255, 255, 255));
img = m_TreeCtl->SetImageList(m_imglist, TVSIL_NORMAL);
All return values indicate success, but there are no images displayed.
Anything I'm missing?
Thanks,
Drew
.
- Follow-Ups:
- Re: Problem with CTreeCtrl::SetImageList()
- From: AliR \(VC++ MVP\)
- Re: Problem with CTreeCtrl::SetImageList()
- Prev by Date: Re: physical storage on disk
- Next by Date: Re: MFC and threads
- Previous by thread: Re: Opening a new window from the main window
- Next by thread: Re: Problem with CTreeCtrl::SetImageList()
- Index(es):