MFC Help ... Urgent

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2008
Posts: 35
Reputation: koushal.vv is an unknown quantity at this point 
Solved Threads: 1
koushal.vv koushal.vv is offline Offline
Light Poster

MFC Help ... Urgent

 
0
  #1
Oct 28th, 2008
Hi ,


i am working with CTreeCtrl,
Here i need to add and remove IMAGE
on the tree item at runtime. ie add an image
only on the particular tree item . How can i do this.
i have tried something like this .
  1. HTREEITEM itemSelected = mtreeCtrl.GetSelectedItem();
  2. mtreeCtrl.SetImageList(&mImageList, LVSIL_NORMAL);
the problem here is Image gets added to all the items
in the tree view . i just want to know how to associate
an image to particular tree item.


Thanks in Advance.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 35
Reputation: koushal.vv is an unknown quantity at this point 
Solved Threads: 1
koushal.vv koushal.vv is offline Offline
Light Poster

Re: MFC Help ... Urgent

 
0
  #2
Oct 28th, 2008
got it guyz its solved .......
mtreectrl.setitemimage();
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC