Click here to Skip to main content
15,917,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

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.

Thank you very much!
Michael.

What I have tried:

pCmdUI->Enable(true); put in ON_UPDATE_COMMAND_UI doesn't have any effect.
Posted
Updated 31-Jul-16 4:56am

1 solution

 
Share this answer
 
Comments
Member 1621323 31-Jul-16 12:32pm    
Hi Richard,

Thanks, but is not working. I already made those steps before, and no effect.

Regards.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900