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. Checkoxes

Checkoxes

Scheduled Pinned Locked Moved C / C++ / MFC
data-structuresquestion
11 Posts 3 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.
  • R Offline
    R Offline
    radhika28
    wrote on last edited by
    #1

    Mine is a dialogbased application.In the dialog box i have placed a tree control and in the properties i have checked the checkboxes.Now my tree contains checkboxes also.Now i want to check the child items automatically when i check the parent window and i want to retrive the checked items.And also if i uncheck the child items the parent item should be also unchecked automatically.How can i do it.I dont want to use any images for checkboxes.

    T 1 Reply Last reply
    0
    • R radhika28

      Mine is a dialogbased application.In the dialog box i have placed a tree control and in the properties i have checked the checkboxes.Now my tree contains checkboxes also.Now i want to check the child items automatically when i check the parent window and i want to retrive the checked items.And also if i uncheck the child items the parent item should be also unchecked automatically.How can i do it.I dont want to use any images for checkboxes.

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      radhika28 wrote: also if i uncheck the child items the parent item should be also unchecked automatically.How can i do it.I dont want to use any images for checkboxes. you have to do that manually.. using recursive function!

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

      R 1 Reply Last reply
      0
      • T ThatsAlok

        radhika28 wrote: also if i uncheck the child items the parent item should be also unchecked automatically.How can i do it.I dont want to use any images for checkboxes. you have to do that manually.. using recursive function!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

        R Offline
        R Offline
        radhika28
        wrote on last edited by
        #3

        Is there any TreeCtrl class that uses bitmap checkboxes and also retrives the checked items.Also if we click on the parent item the child items should also be retrived.

        H 1 Reply Last reply
        0
        • R radhika28

          Is there any TreeCtrl class that uses bitmap checkboxes and also retrives the checked items.Also if we click on the parent item the child items should also be retrived.

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          See Tree control with bitmap checkboxes supported[^] helpfuls?


          WhiteSky


          R 1 Reply Last reply
          0
          • H Hamid Taebi

            See Tree control with bitmap checkboxes supported[^] helpfuls?


            WhiteSky


            R Offline
            R Offline
            radhika28
            wrote on last edited by
            #5

            Thanks but i got 156 errors when i downloaded it and runned the application.

            H 1 Reply Last reply
            0
            • R radhika28

              Thanks but i got 156 errors when i downloaded it and runned the application.

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              What errors?


              WhiteSky


              R 1 Reply Last reply
              0
              • H Hamid Taebi

                What errors?


                WhiteSky


                R Offline
                R Offline
                radhika28
                wrote on last edited by
                #7

                e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2143: syntax error : missing ';' before '*' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'IXMLDOMDocument' : missing storage-class or type specifiers e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'm_pXML' : missing storage-class or type specifiers e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(51) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(52) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2143: syntax error : missing ';' before '*' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'IXMLDOMElement' : missing storage-class or type specifiers e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'AddNewNode' : missing storage-class or type specifiers e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(63) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(64) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(65) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(69) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltreectrl.h(44) : error C2061: syntax error : identifier 'IXMLDOMElement' E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2065: 'IXMLDOMElement' : undeclared identifier E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2065: 'ele' : undeclared identifier E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2106: '=' : left operand must be l-value E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(180) : error C2440: '=' : cannot convert from 'int *' to 'int' This conversion requires a reinterpret_cast, a C-style cast or function-style cast E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(205) : error C2059: syntax error : ')' vs_treectrlDoc.cpp vs_treectrlView.cpp e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2143: syntax error : missing ';' before '*' e:\downloads\vtree\test_float_control\vs_treectrl\xmltre

                H 1 Reply Last reply
                0
                • R radhika28

                  e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2143: syntax error : missing ';' before '*' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'IXMLDOMDocument' : missing storage-class or type specifiers e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2501: 'm_pXML' : missing storage-class or type specifiers e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(51) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(52) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2143: syntax error : missing ';' before '*' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'IXMLDOMElement' : missing storage-class or type specifiers e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(54) : error C2501: 'AddNewNode' : missing storage-class or type specifiers e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(63) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(64) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(65) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(69) : error C2061: syntax error : identifier 'IXMLDOMElement' e:\downloads\vtree\test_float_control\vs_treectrl\xmltreectrl.h(44) : error C2061: syntax error : identifier 'IXMLDOMElement' E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2065: 'IXMLDOMElement' : undeclared identifier E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2065: 'ele' : undeclared identifier E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(178) : error C2106: '=' : left operand must be l-value E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(180) : error C2440: '=' : cannot convert from 'int *' to 'int' This conversion requires a reinterpret_cast, a C-style cast or function-style cast E:\DownLoads\vtree\test_float_control\vs_treectrl\vs_treectrl.cpp(205) : error C2059: syntax error : ')' vs_treectrlDoc.cpp vs_treectrlView.cpp e:\downloads\vtree\test_float_control\vs_treectrl\xmltree.h(39) : error C2143: syntax error : missing ';' before '*' e:\downloads\vtree\test_float_control\vs_treectrl\xmltre

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #8

                  I compile this example and it compiles without any error


                  WhiteSky


                  R 1 Reply Last reply
                  0
                  • H Hamid Taebi

                    I compile this example and it compiles without any error


                    WhiteSky


                    R Offline
                    R Offline
                    radhika28
                    wrote on last edited by
                    #9

                    Is there any another article based on my requirements.

                    H 2 Replies Last reply
                    0
                    • R radhika28

                      Is there any another article based on my requirements.

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #10

                      I think yes see TreeCtrl section on codeproject


                      WhiteSky


                      1 Reply Last reply
                      0
                      • R radhika28

                        Is there any another article based on my requirements.

                        H Offline
                        H Offline
                        Hamid Taebi
                        wrote on last edited by
                        #11

                        Is your problem solving?


                        WhiteSky


                        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