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.
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.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
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.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
create a resource and derive the class from CControlBar
then create it the CMainFrame as you would any other tool bar
zMan