I created with Visual C++ 2010 a MFC application with ribbon. I have added buttons to this ribbon, but I do not know how to add images to these buttons. I tried editing writelarge.bmp file from the project, and setting the index of image on these buttons, but now the ribbon icons looks very ugly. Is there an easy way to add icons to ribbon images, other than editing writelarge.bmp file from the project?
相关问题
- how to call a C++ dll from C# windows application
- Visual Studio 2010 randomly says the command line
- efficiently calling unmanaged method taking unmana
- (ASP.NET) Project file must include 'WindowsBa
- Partial Form Class C# - Only display code view for
相关文章
- How to show location of errors, references to memb
- Log4Net Multiple Projects
- Compiling error in C++ project with C and C++ code
- How to use Mercurial from Visual Studio 2010?
- VSIX: execute code on VS startup
- Copy different file to output directory for releas
- How do we alias a Sql Server instance name used in
- visual studio 2010 confirmation on close
You have the possibility to use only one file for each RibbonCategory.
Create your png file (32x256 for instance)
Add the file like a resource
Always in the Resource View, select your RibbonCategory and set the "Large Images" property to your PNG resource identifier (like IDB_MYMENU_PNG).
I also have many issues using bmp format (image not visible, transparency deleted, ...) that's why I recommand the png format.
In order to use original and custom images in the same category, I created a png file which is a merge of both.