How to add category, panel and command to CMFCRibbonBar in the code?

  • Thread starter Thread starter Yan Yang
  • Start date Start date
Y

Yan Yang

Guest
I am trying to create a ribbon bar in our application which uses CMFCToolBar, so that the user can switch between menu/toolbar interface and ribbon iterface. The switch is working despite the fact that there is only one command without any icon added in the ribbon.

The ribbon bar is created using ribbon editor, but I could not add icons to the commands, the image index is always -1.

Is there any other ways to create the ribbon? Is it possible to add items into the ribbon in the code instead of ribbon editor? So that I can set the icon for each command using existing resources.

Thanks in advance.

Continue reading...
 
Back
Top