-
April 12th, 2011, 11:26 PM
#1
MFC Tree Control: How to add multiple icons to a tree control item?
Hi,
I am trying to display multiple icons to the treeview item but it is not displaying all the icons, it displays only one.
I am using CImageList m_imageState;
m_cTree.m_imageState.Create(16, 16, ILC_MASK, 0, 4);
m_cTree.m_imageState.Add(&bm, RGB(255,255,0));
m_cTree.m_imageState.Add(&bm2, RGB(255,0,255));
m_cTree.m_imageState.Add(&bm, RGB(255,255,0));
m_cTree.m_imageState.Add(&bm1, RGB(0,255,255));
But when i see treeview item it displays only one icon.
Is it possible to display multiple icons with treeview item?
Please suggest how can i do this.
Thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|