Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have an MFC application that uses the ms office 2007 Ribbon control. I can edit my ribbon panels, buttons...
The problem is that my application load its plugins DLLs when it starts and it add menus from the resources and add the class that handle the commands and so on no in Ribbon style I need to provide a way to load ribbons from the plugin DLL and merge it to the main ribbon. how to accomplish this?

I can add them dynamically from code[add panel add button....] but not by resources i need a way to do it from resources. each developer will care about the logic and put his ribbon design in resources, it's easier.

share|improve this question
I have got an idea, after looking at the structure of the IDR_RIBBON resource xml, i think that loading the xml from the other dlls and from the main application also and merge them in one XML document and use CMFCRibbonBar::LoadFromBuffer instead of LoadFromResource, this is just my primary idea may success may fail but, dealing with XML files in MFC C++ is unknown for me , previously we depended on the lovely .NET, god be with us always especially when working with C++. – Ahmed safan May 26 at 11:06

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.