-
July 25th, 2008, 03:18 AM
#1
Tree Control select method called itself
I have tree control on left pane and list control on right pane. For list control i'm displaying a pop up menu when i right click on any item in list control. When i right click on any item in list control and select any option from pop menu, tree control select item(TVE_SELECT) is called automatically. This TVE_SELECT is called for the selected item in tree control.
Suppose i create tree/list control in one exe and i want to do all tree/list control operations like insert items, display popup menu etc from a dll then how to solve above problem from dll code. I dont have exe code.
I want to know how to refresh tree/list control from dll? And how to stop tve_select from dll if it called automatically.
Last edited by MFCQuery; July 25th, 2008 at 03:50 AM.
-
July 25th, 2008, 03:50 AM
#2
Re: Tree Control select method called itself
What is TVE_SELECT?
And how is it called and who does it call?
What type of App are you developing: MFC, Win32, Doc/View, SDI/MDI/..., ?
Victor Nijegorodov
-
July 25th, 2008, 04:30 AM
#3
Re: Tree Control select method called itself
Sorry it's NM_CLICK not TVE_SELECT.
And the application is dll in VC++.
-
July 25th, 2008, 04:36 AM
#4
Re: Tree Control select method called itself
I still cannot understand the logic of your software: what and how are you trying to accomplish and what are your problems?
Which type of dll?
Could you provide further clarification?
Victor Nijegorodov
-
July 25th, 2008, 04:59 AM
#5
Re: Tree Control select method called itself
Ok Let me explain this in detail.
I have one MFC dialog base application. On the dialog i have tree control and list control. Lets take example of window explorer. In left pane we have directories and in right pane we display subdirectories and files of this directory. All these data i'm storing in a dll (directories/subdirectories). So when i click on any directory in left pane i call a function of dll where i pass this directory name. Dll searches all subdirectories and files and insert in right pane.
From dll i can insert item in tree/list control in some variable which i pass from exe. But i dont know how to call refresh method of list/tree control from dll to make items visible. I have tried to implement dll in regular dll or ATL com dll.
Now suppose i dont have exe code but i have exe. I have dll code. Now from this dll code i have to insert items and refresh them.
Let me explain the problem now.
Suppose i click on any directory in left pane, exe call one function of dll which search all subdirectories and files and insert them in variable which i pass from dll. So i can see all sub directories in right pane. Now Suppose if user right click mouse on any item in left pane a popup menu is display which contains "Show". If i click on show then i want same functionalities like NM_CLICK. For this i call same dll function which insert all subdirectories and files in right pane. But it doesn't display them. So here i think i need to refresh right pane from dll. But i dont have idea how to do this.
Last edited by MFCQuery; July 25th, 2008 at 05:09 AM.
-
July 25th, 2008, 05:34 AM
#6
Re: Tree Control select method called itself
Originally Posted by MFCQuery
... For this i call same dll function which insert all subdirectories and files in right pane. But it doesn't display them. So here i think i need to refresh right pane from dll. But i dont have idea how to do this.
Could you show the code you are using to "insert all subdirectories and files in right pane"?
Victor Nijegorodov
-
July 25th, 2008, 05:52 AM
#7
Re: Tree Control select method called itself
I pass pointer to list control. And in dll i use
list control pointer->InsertItem("item name",......);
-
July 25th, 2008, 06:25 AM
#8
Re: Tree Control select method called itself
I didn't ask you about the method used to insert item in the list control.
But if you don't want to show your code that appears to not work, then sorry, I should give up...
Victor Nijegorodov
-
December 8th, 2008, 07:42 AM
#9
Re: Tree Control select method called itself
Dear Sir, am using SDI application, i created list control, want to insert treecontrol in listcontrol, can anyone help me?
Thanks
Geetha.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|