Get text from tree control
-
Hi I have a application running which got tree control in it(say Windows explorer). I get the handle of the tree control through another program (my program) and then try to get the tree control items string. But I always get null, but even though I can do other operation like delete a particular item from it. (both the program are in different process). Cant I get the string for a third party application running in a different process? I know I can get string from the edit control, but I could not get from a tree control. Regards Ravi
-
Hi I have a application running which got tree control in it(say Windows explorer). I get the handle of the tree control through another program (my program) and then try to get the tree control items string. But I always get null, but even though I can do other operation like delete a particular item from it. (both the program are in different process). Cant I get the string for a third party application running in a different process? I know I can get string from the edit control, but I could not get from a tree control. Regards Ravi
I assume you have a char buffer and you're putting its address in a TVITEM struct, and passing that struct in a TVM_GETITEM message? That won't work because the process with the tree can't access the memory in your process. You're lucky the other process isn't GPFing, actually.
-
I assume you have a char buffer and you're putting its address in a TVITEM struct, and passing that struct in a TVM_GETITEM message? That won't work because the process with the tree can't access the memory in your process. You're lucky the other process isn't GPFing, actually.
Yes, I did the same. But I could get the edit box text, how? Also Is there a way to get the tree control item and its strings? regards Ravi
-
Yes, I did the same. But I could get the edit box text, how? Also Is there a way to get the tree control item and its strings? regards Ravi
-
Becuase you get an edit box's text with GetWidowText(), which is designed to work between different processes.
Thanks Mike for your answers! But I dont understand they gave the capability to GetWindowText but not to treecontrol! If they gave they should have given to all or just none! Oh boy, I want to get the strings from the control!!! any help is appricated! regards Ravi