Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Regarding Addition of Items in Tree Control by Type.

Regarding Addition of Items in Tree Control by Type.

Scheduled Pinned Locked Moved C / C++ / MFC
data-structures
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    janaswamy uday
    wrote on last edited by
    #1

    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.

    C 1 Reply Last reply
    0
    • J janaswamy 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.

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      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 <

      J 1 Reply Last reply
      0
      • C Code o mat

        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 <

        J Offline
        J Offline
        janaswamy uday
        wrote on last edited by
        #3

        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.

        C L 2 Replies Last reply
        0
        • J janaswamy 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.

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          janaswamy uday wrote:

          Pls provide me a solution if it is existing.

          nobody here is going to do your work for you.

          image processing toolkits | batch image processing

          1 Reply Last reply
          0
          • J janaswamy 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.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            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

            J 1 Reply Last reply
            0
            • L Lost User

              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

              J Offline
              J Offline
              janaswamy uday
              wrote on last edited by
              #6

              Hi, Thank you very much. I got It. Thanks a Lot. Regards, Uday.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups