Displaying Control Bars on each pane
Mike Aoun -- aoun@westar.com Wednesday, August 28, 1996 Environment: Win95 / Windows NT 4.0 / MSVC++ 4.2 I need to create an MDI app that has two views, separated by a splitter bar, with control bars (status bar & toolbars) on each pane. I know how to create MDI apps, add splitter bars, associate the panes with their appropriate views. I also know how to add control bars to the child frames of MDI apps. I have the DLGBAR app from MSDN which tells how to add control bars to dialog boxes, but this doesn't solve my problem. The best I have been able to do is create control bars which span the entire width of the child frame instead of just the appropriate panes. I've checked MSDN (July 96), the FAQ, Inside Visual C++, MFC Master Class and Visual C++ How-To (4.0) and not been able to find the solution. Any ideas/info would be greatly appreciated. Thanks. -- Michael C. Aoun Software Engineer Westar Corporation http://www.westar.com
Niels Ull Jacobsen -- nuj@kruger.dk Wednesday, September 04, 1996 At 10:24 28-08-96 -0500, you wrote: >Environment: Win95 / Windows NT 4.0 / MSVC++ 4.2 > >I need to create an MDI app that has two views, separated by a splitter >bar, with control bars (status bar & toolbars) on each pane. > >I know how to create MDI apps, add splitter bars, associate the panes >with their appropriate views. I also know how to add control bars to >the child frames of MDI apps. I have the DLGBAR app from MSDN which >tells how to add control bars to dialog boxes, but this doesn't solve my >problem. > >The best I have been able to do is create control bars which span the >entire width of the child frame instead of just the appropriate panes. > >I've checked MSDN (July 96), the FAQ, Inside Visual C++, MFC Master >Class and Visual C++ How-To (4.0) and not been able to find the >solution. > >Any ideas/info would be greatly appreciated. Well, here's an idea - I don't know if it will work: Make your panes CFrameWnds containing CViews - not just plain CViews. This should allow you to dock control bars to their edges. I think you can put pretty much anything in a CSplitterWnd - not just vie= ws.=20 The message wiring might get a bit tricky, however. >--=20 >Michael C. Aoun Niels Ull Jacobsen [MVP], Kr=FCger A/S (nuj@kruger.dk) Everything stated herein is THE OFFICIAL POLICY of the entire Kruger=20 group and should be taken as legally binding in every respect.=20 Pigs will grow wings and fly.
| Вернуться в корень Архива |