What I am trying to do is have a static bar going down the side of an MDI app with a tree view of a list of files in it (kind of like the project bar in msvc). Does anyone know the best way of going about this as i really have no idea.
Printable View
What I am trying to do is have a static bar going down the side of an MDI app with a tree view of a list of files in it (kind of like the project bar in msvc). Does anyone know the best way of going about this as i really have no idea.
I only know one way, so maybe it's not the best ;)
Use a splitter to split your MDI child in two. The easy way would be placing a CTreeView in the left side, but if you want more than just one tree, you should take a CFormView derived class and put your elements on there.
I found nice splitter projects on www.codeguru.com.
Thanks but I need the rest of the window to remain as an mdi.
I have a treeview down the left of my MDI.
I just created a child wondow for it (and the listbox below it) then created the treeview as a child ctrl. Make it 100% of the client and remove the systembar / edge (frame) styles from the child window.
The rest of the screen is another child on which the data selected is displayed.
create a resource and derive the class from CControlBar
then create it the CMainFrame as you would any other tool bar