How to add icons to commands in context menu in ribbon interface?

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

Yan Yang

Guest
I have a ribbon created with CMFCRibbonBar, each button on the ribbon has a command ID and an image index to set an icon on the button. The icon can be displayed correctly on each button on the ribbon.

I also would like to display icons for the commands in the context menu, which has same command IDs on the ribbon. My question is how to associate each command with each icon so that the icon for each command can also be displayed in the context menu?

Thanks in advance.

Continue reading...
 
Back
Top