TreeCtrl in MFC
-
hi, i have a tree ctrl with Number of items say 10 items under one root Node, at the end of each child item i need to add an image . How is this Possible ? Thanks,
Born to win...!
-
hi, i have a tree ctrl with Number of items say 10 items under one root Node, at the end of each child item i need to add an image . How is this Possible ? Thanks,
Born to win...!
-
hi, i have a tree ctrl with Number of items say 10 items under one root Node, at the end of each child item i need to add an image . How is this Possible ? Thanks,
Born to win...!
You need to owner draw the items. (search for NM_CUSTOMDRAW on msdn ) but if you want to add an image at the "beginning" of each item, you can simply use
CTreeCtrl::SetItemImage
. M.Watched code never compiles.
-
hi, My objective is end of each child item i need to add a image. Example : Root | Child 1 text [image] Child 2 text [image] Child 3 text [image] Child 4 text [image] above [image] -> image of size 12*12
Born to win...!
-
You need to owner draw the items. (search for NM_CUSTOMDRAW on msdn ) but if you want to add an image at the "beginning" of each item, you can simply use
CTreeCtrl::SetItemImage
. M.Watched code never compiles.
hi, Thanks for ur kind reply, Do we have any sample program for that..? it will be more helpful to complete.
Born to win...!
-
hi, Thanks for ur kind reply, Do we have any sample program for that..? it will be more helpful to complete.
Born to win...!
i'm certain you can find some examples here on codeproject.
Watched code never compiles.
-
You need to owner draw the items. (search for NM_CUSTOMDRAW on msdn ) but if you want to add an image at the "beginning" of each item, you can simply use
CTreeCtrl::SetItemImage
. M.Watched code never compiles.
NM_CUstomDraw i have gone through this, but hope we have text property on that. have not seen the image property on that.
Born to win...!