如何更改功能区界面的MainButton图片 [英] How to change the picture of the MainButton of the ribbon interface

查看:79
本文介绍了如何更改功能区界面的MainButton图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用功能区界面创建MFC Project.应用程序主按钮的默认图片是&"MFC&".我想改变它.我使用26x26Pixel位图.但它不起作用.什么都不会显示.

我在资源中编辑功能区界面.并在MainFrame的Create函数中使用函数LoadResource.

I create a MFC Project use the ribbon interface. The default picture of the Application Main Button is "MFC". I want to change it. I use a 26x26Pixel bitmap. but it does not work. nothing will be show.

I edit the ribbon interface in the resource. and use the function LoadResource in the Create function of MainFrame.

what''s why?

推荐答案

Ribbon UI是一种工具栏,甚至是命令栏,它在顶部的选项卡中排列了不同的命令按钮,画廊等.应用程序窗口. 选项卡"中的控件可以进一步分组,还可以引入上下文选项卡"等.因此,简而言之,Ribbon替换了带有窗口​​的工具栏和菜单控件,并在应用程序UI上提供了扎实的外观.
如果使用VC2010新建MFC项目,则可以在res中看到功能区UI,还可以在res中编辑功能区.
the Ribbon UI is a sort of Toolbar or rather Command Bar which arranges different Command buttons, gallaries, etc in Tabs at the top of the application Window. The controls in the Tabs can further be grouped and also introduces Contextural Tabs etc. So in short, Ribbon replaces toolbar and menu controls that are there with windows and gives a solid look on the application UI.
IF you use VC2010 to New a MFC project, you can see the Ribbon UI in the res,and you can edit the ribbon in the res.


这篇关于如何更改功能区界面的MainButton图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆