c++ TreeView with Columns down loadable project to learn on

Hi i am trying  to find a nice little c++ TreeView with Columns project that i can set up an run and see how it all hangs together for a project that i am building and need the above to see how it all hangs together, i have on in c# but need it in c++ see the diagram for what i am trying to do this is all  i need if the data comes from buttons to add and subtract thats fine if the data comes from mysql or sql server thats the next step that i will the next step
thanks for your help
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

>> i have on in c# but need it in c++
Could you be more specific in why you would want to convert your C# program that you have to C++? What platform/compiler will you be using for your new C++ program?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sydneyguyAuthor Commented:
I am actuslly trying to get one in c++ so tht i dont have to convert it. i really just want one that runs so that i can see how it allhangs together without spending time back building it.
at this point i am more interested how it works not the differnce between c# and c++ i will be  using it in vs2008 express
so i do not wnat to convert its just the c# image shows what i am looking for
thabnks for your help so far
I believe it is easier to do this in C#. If using vs2008 express, then to get GUI's, you may have to use a third party utility such as QT Creator. However, I didn't find an easy link on combining QT with VS2008 express. If you can move to the latest VS, you may have better luck.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

to find a nice little c++ TreeView with Columns project

are you using managed c++ and windows forms or c++ with mfc?
if the first, it is no big issue to port from c# to managed c++. you even could call and use the c# classes from managed c++.

if the second, there are a few problems which prevent existing code to be nice and little. they tend to be ugly and big, instead.

the first problem is that your data normally exist as a table (an array of rows) and not as a tree. normally each line represents exactly one class object and the whole table is another class. the first columns would be key1, key2, ..., keyn, up to the maximum depth of the tree. if you sort the table by these key columns value, and push it into a grid (listview), the look is not so much different than your picture, perhaps better, if you omit to show duplicate (parent key) values. if your data is not in a table but already in a tree container, you need to traverse the tree in preorder (what normally was provided by the tree container class) and then could fill a listview from that tree same as from the table. if you have any other kind of container you will also find a solution to get the objects as a list sorted by the keys. a listview also provides icons (first column) if you want.

now you want to have lines and icons for to expand and to collapse. you could do that with an owner-drawn listview. however that means you have to draw everything yourself. a probably better idea ist to have two controls for the grid. the first control shows the tree and the second shows the attribute columns.

now you want to have some of the keys expanded and some other collapsed. you can't do that with a listview without flickering. at least it is very difficult. that means though we already would have two controls where the first one could be changed from listview to treeview, it is probably not a solution because of flickering.

so, you have to go back and use one treeview for all data. the problem you have now, is that you can't define multiple columns in a treeview. instead the treeview offers one big text field which begins at a different left offset for each tree depth. i don't know a practicable way to replace the text fields with a grid and i don't think that a standard treeview has such an option.

so you have to go back to listview again, make a big empty first column and use a tree control with no scrollbars as an overlay of this column. when the expand event was fired, you have to insert the new rows for the expanded sub items yourself. same is when a tree item was collapsed. as told it is not easy to do this without flickering but if the number of sub-items is small as in the picture, it might be done, unfortunately not so nice and little as required.

Is this link and the navigation links in the left pane relevant to you? If so, have you looked at them and tried to build your non-trivial program.
sydneyguyAuthor Commented:
thanks for you help have taken a step back and loaded up vs2003 to try and move the project along, but ran into another problem to do with iostream  the question is here if you would like to have a look at it for me


thanks for all your help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.