Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My question is simple - "In application with lots of data, I am unable to click on the treeview child item". Kindly read detail explanation:

I am creating a function to simulate a treeview control in another process. So far I have succeded in
1.Getting handle of Tree view control handle of another process using Hooking technique.
2.Getting handle of root and other item of treeview.

For Eg: Now I need to click on an child2 (Parent1->child1->child2).I checked in small sample application it worked well.Next I started to test using real application , in that application when parent1 is clicked only "Dummy items" appear. I know for performance, when treeview control is loaded for the first time Parent1 will contain "Dummyitems". After clicking/Expanding on parent1 it will fetch the data from DB and display its contents. But for me when I click the parent item programatically it only displays "dummyitems" for the first time,So I am unable to click on other items. Kindly help.
Posted
Comments
Malli_S 5-Feb-14 5:01am    
Posting a code snippet will help to find the issue.

did you perform first a klick on a child item or did your first expand the parent items programatically?

Maybe you try to klick on a child item and his parent isn't expandet, so the item's are not loaded from the DB, so there are only the dummy items.

Check if the Parent Items are expanded and then klick the item you want.
 
Share this answer
 
What exactly do you mean you used a hooking technique ... that is a very no specific term?

Are you talking about subclassing or superclassing the Listbox or have you really gone off the beaten track and used windows hooks?

Here this explains the terms:
http://winapi.foosyerdoos.org.uk/info/sub_superclass.php[^]

There is nothing complicated about what you are doing and I can't for the life of me work out why you are inserting hooks in anything.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900