MFC 2008 Feature Pack - CMFCReBar & CMFCToolBar

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am trying to upgrade a VS2005 C++ application to VS2008 using the new MFC Feature Pack.

In particular I want ot be able to use the new menu and toolbars to improve the application look&feel. Ill explain what I want to achive before explaining my doubts/problems.

I want one menu bar and three different toolbar (all in the same row). I want to be able to change the centre toolbar for every view while keeping the other two.

In my VS2005 application I use a CMenu and 3 CToolbar inside one CReBar control. That works fine. I have changed the CMenu for a CMFCMenuBar, CToolbar for CMFCToolBar and the CReBar for CMFCReBar (among other changes). These are my problems:

If I apply a Visual Manager the rebar control is not been painted with the same look&feel that the rest of the controls.When I attach any of the toolbars to the rebar control, the toolbar background is not the same that the rebar. I mean the rebar control is painted with a gradient that is not in the toolbar (even if use the transparent style in the toolbar there is a kind of border).If I try not to use the CMFCReBar control, I am having problems to make the toolbars and menus not floatable.

Maybe I am not using the right approach to upgrade my application. But I dont find much information about how to do it if you need to make some costumizations.

Can anybody help me to do it?

Thanks in advance.

Javier


View the full article
 
Back
Top