Checkoxes
-
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.
-
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.
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
-
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
-
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.
-
-
What errors?
WhiteSky
-
What errors?
WhiteSky
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
-
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
I compile this example and it compiles without any error
WhiteSky
-
I compile this example and it compiles without any error
WhiteSky
-
I think yes see TreeCtrl section on codeproject
WhiteSky
-
Is your problem solving?
WhiteSky