![]() ![]() HItem!=NULL hItem = GetNextItem( hItem ) ) HTREEITEM CXMLTree::GetFirstCheckedItem() Return GetItemState( hItem, TVIS_STATEIMAGEMASK ) > 12 = 2 You shall first load the image for state using the following statement:īOOL CXMLTree::IsItemChecked(HTREEITEM hItem) Because this sample starts from my previous article, I used the same class as in the previous article. Add a new bitmap resource in your project named IDB_STATE which includes 3 images: blank image, unchecked and checked box.Īnd then, we derive a new class from CTreeControl. You shall implement your tree control from this point.įirstly, you shall check CheckBox style in your resource where you want to use checkboxed tree control. In the property page of tree control, there is a style named CheckBox. Stephane Rodriguez mentioned a bug in the click and expand of the tree. I have added the function to my tree control too. Anthony_Yio sent me a mail suggesting full selection of children and full un-checking of the children in the tree control as Office 2000 features. He suggested to change the title of this article to make it more accurate. I got up today, "_Stephane Rodriguez_" sent me a mail. I spade for an hour, and I found it is easy to do that. Somebody gave me a suggestion that I should add a checkbox in my control. I posted an article for float control several months ago.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |