Question

I have created a MDI project with CView's using VS2008Pro. I want to have some sort of bar at the bottom of every CView where i can put controls on, like buttons. I dont know how this bar is called and how to create one for every CView.

I have a picture of it here to explain what i want. http://www.4shared.com/dir/32975742/b4bac91c/CView_Bar.html

Could someone please tell me what kind of bar this would be and how to create it for CViews?

Thanks.

Was it helpful?

Solution

I think, what you want is basically a Toolbar (to answer your question how it is called) in an MDIChildWindow (similar like the toolbar in the main frame window of your application which is created usually by the MFC application wizard automatically). The way to add a toolbar in a child frame window is very analogous to what the wizard has added to the main frame window. You can decide in code where the toolbar shall be located (top, bottom, left, ...)

You can find a brief "How to..." here: http://support.microsoft.com/kb/155141

Also try to google by "Toolbar in MDIChildWindow" or similar. You'll find many resources, I believe.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top