Problem with tree control and checkboxes
-
Hi, I have a tree control with checkboxes (using the following tip http://www.pocketpcdn.com/articles/checktree.html) Now I'd like to know how I can retrieve the boxes that have been checked. And if it is possible NOT to display the checkboxes corresponding to some items of the tree (I'd like checkboxes only for the leafs of the tree). Thanks
-
Hi, I have a tree control with checkboxes (using the following tip http://www.pocketpcdn.com/articles/checktree.html) Now I'd like to know how I can retrieve the boxes that have been checked. And if it is possible NOT to display the checkboxes corresponding to some items of the tree (I'd like checkboxes only for the leafs of the tree). Thanks
Hi, Wenever you click the treecontrol item the image coresponding to it is retreived from the imagelist and displayed . TreeCtrl sends a notificastion message of type TVN_GETDISPINFO . for this you need to set some flag in the LPARAM in the InsertItem.(check MSDN) So wen the user clicks the item it send a notification and inside you can maintain the list of items thats are geting checked and wen you uncheck you remove the index from your container. You can chcek this link:- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr/html/_wcesdk_win32_TVITEM_str.asp[^] Regards, FarPointer Blog:http://farpointer.blogspot.com/