CMFCRibbonBar位图问题 [英] CMFCRibbonBar Bitmap Question
问题描述
目标:将位图添加到MFCRibbonBar中包含的类别中面板中已经存在的按钮中.
我正在执行以下操作:
1.从资源视图中打开功能区栏编辑器.
2.右键单击按钮,然后选择属性".
3.在属性"下拉列表中,单击图像索引"行上的省略号按钮(显示-1)
4.然后打开图像收集"对话框.
问题:
一个.我是否正确假设其中带有红色对角线且其下方为-1的框表示该图像集中没有图像?
b.我绘制了图像(位图).如何将它们放入图像收集"对话框,以便可以选择它们?
有工具栏按钮或菜单项可以执行此操作吗?
谢谢,
Barry
Objective: Add a bitmap to a button already in a Panel within a Catagory contained in a MFCRibbonBar.
I am doing the following:
1. Open the ribbon bar editor from the Resource View.
2. Right click the button and then select "Properties".
3. On the "Properties" drop-down, click the ellipsis button on the "Image Index" line (shows -1)
4. This then opens the "Image Collection" dialog box.
Questions:
a. Am I correct in assuming that the box with the red diagonal line in it and -1 under it is meant to indicate no images in the collection?
b. I have the images (bitmaps) drawn. How do I get them into the "Image Collection" dialog box so that I can select them?
Is there a toolbar button or menu item for doing this?
Thanks,
Barry
推荐答案
在功能区编辑器中,单击类别选项卡.在其属性中,有两个值:
大图(32 * 32)
小图片(16 * 16).
通常最重要的是大图像.
您必须拥有一个资源,该资源的位图的高度= 32,宽度= 32 * numimages,这些图像是秘密存储的.
非常重要:该位图必须是32位位图.
In the ribbon editor, click on a category tab. In its properties there are two values:
Large Images (32*32)
Small Images (16*16).
The one that usually counts is large images.
You must have a resource with a bitmap of height = 32 and width = 32 * numimages where the images are stored secuentially.
VERY IMPORTANT: That bitmap must be a 32bit bitmap.
这篇关于CMFCRibbonBar位图问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!