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. Proverbial good example of CTreeCtrl

Proverbial good example of CTreeCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
12 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.
  • F federico strati

    Any pointer to some good example on how to use the CTreeCtrl ?

    S Offline
    S Offline
    Sauro Viti
    wrote on last edited by
    #2

    Start from here[^]

    F 1 Reply Last reply
    0
    • S Sauro Viti

      Start from here[^]

      F Offline
      F Offline
      federico strati
      wrote on last edited by
      #3

      bad answer... I've already done that and could not find just a full example of the basic CTreeCtrl, otherwise I wouldn't ask it here, would I ?

      CPalliniC D 2 Replies Last reply
      0
      • F federico strati

        bad answer... I've already done that and could not find just a full example of the basic CTreeCtrl, otherwise I wouldn't ask it here, would I ?

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #4

        The answer is actually correct. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • F federico strati

          bad answer... I've already done that and could not find just a full example of the basic CTreeCtrl, otherwise I wouldn't ask it here, would I ?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #5

          With smart-aleck replies like this, you'll be lucky to receive any further help in the future.

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Man who follows car will be exhausted." - Confucius

          F 1 Reply Last reply
          0
          • D David Crow

            With smart-aleck replies like this, you'll be lucky to receive any further help in the future.

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Man who follows car will be exhausted." - Confucius

            F Offline
            F Offline
            federico strati
            wrote on last edited by
            #6

            point taken... but I did already my bit in searching the articles first... neededless to say, giving an answer in search form is a bit pointless as it was my first try to already search the articles... hence what I'm looking for is somewhat different: a pointer to a short/full application that does use the CTreeCtrl that is not listed in the search results... otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!

            CPalliniC D 2 Replies Last reply
            0
            • F federico strati

              point taken... but I did already my bit in searching the articles first... neededless to say, giving an answer in search form is a bit pointless as it was my first try to already search the articles... hence what I'm looking for is somewhat different: a pointer to a short/full application that does use the CTreeCtrl that is not listed in the search results... otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #7

              federico.strati wrote:

              otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!

              How can we tell, in advance, how stupid are you? :rolleyes:

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              In testa che avete, signor di Ceprano?

              F 1 Reply Last reply
              0
              • CPalliniC CPallini

                federico.strati wrote:

                otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!

                How can we tell, in advance, how stupid are you? :rolleyes:

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                F Offline
                F Offline
                federico strati
                wrote on last edited by
                #8

                you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ... :laugh: :laugh: :laugh: :laugh: :laugh: Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D

                D CPalliniC S 3 Replies Last reply
                0
                • F federico strati

                  point taken... but I did already my bit in searching the articles first... neededless to say, giving an answer in search form is a bit pointless as it was my first try to already search the articles... hence what I'm looking for is somewhat different: a pointer to a short/full application that does use the CTreeCtrl that is not listed in the search results... otherwise I'll just feel somebody thinks me to be so stupid to don't search before asking !!!

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #9

                  federico.strati wrote:

                  but I did already my bit in searching the articles first...

                  How were we to know?

                  federico.strati wrote:

                  neededless to say, giving an answer in search form is a bit pointless

                  Unless you consider that most folks that visit the C++ forums have NOT done an initial search. They would rather spend more time creating a CP profile and typing in an incoherent question than they would by just Googling. Lazy does not begin to describe some of the ones here. Given that your profile indicates you are indeed an educated person, you probably should have prefaced your post with what you had already tried. That would help to set you apart from the others.

                  "One man's wage rise is another man's price increase." - Harold Wilson

                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                  "Man who follows car will be exhausted." - Confucius

                  1 Reply Last reply
                  0
                  • F federico strati

                    you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ... :laugh: :laugh: :laugh: :laugh: :laugh: Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #10

                    federico.strati wrote:

                    Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning...

                    That's what I would do. Populating it with files from your computer would be a great exercise.

                    "One man's wage rise is another man's price increase." - Harold Wilson

                    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                    "Man who follows car will be exhausted." - Confucius

                    1 Reply Last reply
                    0
                    • F federico strati

                      you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ... :laugh: :laugh: :laugh: :laugh: :laugh: Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D

                      CPalliniC Offline
                      CPalliniC Offline
                      CPallini
                      wrote on last edited by
                      #11

                      federico.strati wrote:

                      you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ...

                      As David, pointed out, I assume what would do the average poster of this forum (unless I know him very well).

                      federico.strati wrote:

                      Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning...

                      By chance you've just found yourself the best route. Si figuri... :-\

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                      [My articles]

                      In testa che avete, signor di Ceprano?

                      1 Reply Last reply
                      0
                      • F federico strati

                        you have just to assume what you would do in the first place, like an "I wouldn't do that, wouldn't I?" ... :laugh: :laugh: :laugh: :laugh: :laugh: Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D

                        S Offline
                        S Offline
                        Sauro Viti
                        wrote on last edited by
                        #12

                        federico.strati wrote:

                        Oh well, I just know I'll end up as always writing my own little app exploring all available options of the CTreeCtrl just for fun in learning... grazie comunque :-D :-D :-D

                        You don't need to write you little app to explore all available options as Microsoft had already done it: the MSDN documentation about MFC classes is very good (in my opinion...) and the MFC samples too. Have a look at CMNCTRL1 Sample: Demonstrates Common Control MFC Classes, Part 1[^]. I cite from the MSDN:

                        Microsoft wrote:

                        The CMNCTRL1 sample illustrates how to use the following common control MFC classes: CTreeCtrl, CToolBarCtrl, CAnimateCtrl, CDateTimeCtrl, and CMonthCalCtrl. It shows how the controls are created and how to change the controls using many of the different available styles. Some controls cover topics that often yield questions from the user; for example, the drag and drop implementation for CTreeCtrl.

                        PS: Prego... :-\

                        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