Regarding Addition of Items in Tree Control by Type.
-
Hi all, I am having a CTreeView in Left Pane and in Right Pane i am Having a View. My Requirement. I can Open a Word Document,Node Pad,WordPad etc. In the Tree i have Main Nodes as 1) Word Document 2) Note Pad 3) Word Pad. etc... By Default this Main Nodes are been Populated. When i Open any File i mean Word Document,NotePad and Word Pad in File Open Menu of my Application then I have to Add The Respective Name beneth this Nodes. I.e) If i open Word Document from File Open Menu Then the Word Document Name must be Added in WordDocument Node. If i open Node Pad from File Open Menu then the Node Pad must Then the Node Pad Name must be Added in Node Pad Node. So which ever Category is been Opened then It should add The Name of Open File Name to Respective Node Only. Please provide me a solution for this. Thanks And Regards, Uday.
-
Hi all, I am having a CTreeView in Left Pane and in Right Pane i am Having a View. My Requirement. I can Open a Word Document,Node Pad,WordPad etc. In the Tree i have Main Nodes as 1) Word Document 2) Note Pad 3) Word Pad. etc... By Default this Main Nodes are been Populated. When i Open any File i mean Word Document,NotePad and Word Pad in File Open Menu of my Application then I have to Add The Respective Name beneth this Nodes. I.e) If i open Word Document from File Open Menu Then the Word Document Name must be Added in WordDocument Node. If i open Node Pad from File Open Menu then the Node Pad must Then the Node Pad Name must be Added in Node Pad Node. So which ever Category is been Opened then It should add The Name of Open File Name to Respective Node Only. Please provide me a solution for this. Thanks And Regards, Uday.
So you are asking us to write you a program that meets your requirements? If you are just asking for pointers, you should try asking a bit more specific questions, like "how do you add items to a treecontrol?" or "how do you know what type of file was opened?" or so, asking for a solution of such a "complex" task sounds like point 2 here[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
-
So you are asking us to write you a program that meets your requirements? If you are just asking for pointers, you should try asking a bit more specific questions, like "how do you add items to a treecontrol?" or "how do you know what type of file was opened?" or so, asking for a solution of such a "complex" task sounds like point 2 here[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
I need a solution which is very urgent. Please donot feel in any other way. As InsertItem(...) will Insert into Respective Node. But how to Find the specific Node is related to that Type. Pls provide me a solution if it is existing. Regards, Uday.
-
I need a solution which is very urgent. Please donot feel in any other way. As InsertItem(...) will Insert into Respective Node. But how to Find the specific Node is related to that Type. Pls provide me a solution if it is existing. Regards, Uday.
janaswamy uday wrote:
Pls provide me a solution if it is existing.
nobody here is going to do your work for you.
-
I need a solution which is very urgent. Please donot feel in any other way. As InsertItem(...) will Insert into Respective Node. But how to Find the specific Node is related to that Type. Pls provide me a solution if it is existing. Regards, Uday.
janaswamy uday wrote:
I need a solution which is very urgent.
Well I'm afraid it is not urgent to us.
janaswamy uday wrote:
But how to Find the specific Node is related to that Type.
How can we offer a solution to this question when we do not know the structure of your Tree control? Take a look here[^] at the documentation for information on how to get to a specific child item of your control.
Just say 'NO' to evaluated arguments for diadic functions! Ash
-
janaswamy uday wrote:
I need a solution which is very urgent.
Well I'm afraid it is not urgent to us.
janaswamy uday wrote:
But how to Find the specific Node is related to that Type.
How can we offer a solution to this question when we do not know the structure of your Tree control? Take a look here[^] at the documentation for information on how to get to a specific child item of your control.
Just say 'NO' to evaluated arguments for diadic functions! Ash
Hi, Thank you very much. I got It. Thanks a Lot. Regards, Uday.