How can I add a ribbon menu to an existing MFC application?
Asked Answered
F

3

5

Microsoft Visual C++ 2008 Feature Pack has ribbon menu support. Is it possible to make use of that in an existing MFC application that was not created with a ribbon menu?

Fabricate answered 17/4, 2009 at 13:8 Comment(2)
I've found an interesting information about your question. hope it helps. msdn.microsoft.com/en-us/library/bb983935.aspxFungal
Yes, it is! I did one!Nimesh
S
5

It certainly is possible to take an existing MFC application and update it to use the ribbon in the MFC Feature Pack, and I've done this myself.

There are a couple of walkthrough articles on MSDN here that show how to do it, using the Scribble MFC sample application that you may be familiar with.

In essence, what you need to do is change your code to use the Feature Pack base classes instead of the standard MFC base classes - for example, replace CWinApp with CWinAppEx, CFrameWnd with CFrameWndEx, etc. Then you can add CMFCRibbonBar and CMFCRibbonApplicationButton objects to your main window class to create the ribbon itself. To get started I'd suggest downloading the Scribble sample and following the walkthough articles.

I hope this helps!

Sow answered 17/4, 2009 at 13:47 Comment(0)
A
2

In addition to the resources pointed out by ChrisN, I recommend creating a new MFC application that includes a ribbon and examining the generated code..

Aoristic answered 19/4, 2009 at 2:53 Comment(0)
D
1

Yes, it is surely possible to use the ribbon classes provided with the MFC Feature Pack.

A basic introduction is available here: Quick Tour Of New MFC Functionality and a more detailed tutorial can be found here: MFC Feature Pack Tutorial.

However, be aware that there is a rather strict license attached to it. For the conditions see Licensing the 2007 Microsoft Office User Interface and this related discussion on SO.

Diligence answered 17/4, 2009 at 13:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.