I would have one question: In VS2013, using the wizard, I have created a small MFC project that contain a ribbon. You already know that in this case VS create automatically several files (View, Doc, MainFrm, etc.). If I create the ribbon message map in one of these files that was created automatically the buttons from ribbon appear enabled, BUT if I create the message map in a class created manually by me, all buttons appear disabled. Why? I want that for each group of buttons of the ribbon to have a separate class. I can't put all methods of the buttons in a single class, it's not elegant.
... I have created a small MFC project that contain a ribbon. You already know that in this case VS create automatically several files (View, Doc, MainFrm, etc.). If I create the ribbon message map in one of these files that was created automatically the buttons from ribbon appear enabled, BUT if I create the message map in a class created manually by me, all buttons appear disabled. ...
How does your "class created manually" look like? Is it derived from CWnd? or some other class?
What "ribbon" messages did you create?
I have created a very simple example and attached to this email.
So, I have created a new button on my ribbon, the I added an event-handler into a new class that was created by me. That new class is derived from CWnd.
I understand what you mean, thank you, I made a stupid mistake.
In your opinion, what is best method to "integrate" MyCLASS into project in order to make it functional?
Last edited by Isaak; August 5th, 2016 at 03:19 PM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.