VC ++ 2010-Ribbon Bar-动态更改 [英] VC++ 2010 - Ribbon Bar - dynamically change

查看:94
本文介绍了VC ++ 2010-Ribbon Bar-动态更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用针对XP及更高版本的VC ++ 2010,并想动态更改使用功能区设计器创建的功能区栏:

1)当用户单击某个项目时更改ICON,然后再次单击时将其更改回.

2)当用户单击某个项目时,请更改文本标签,并在再次单击时将其更改回.我已经可以对主功能区进行操作了,但是如何对快速访问工具栏和应用程序按钮列表中的相同项目进行操作呢?

I am using VC++ 2010 targeting XP and up and would like to dynamically change the ribbon bar which was created using the ribbon designer:

1) change the ICON when a user clicks on an item and then change it back when clicked again.

2) change the text label when a user clicks on an item and change it back when clicked again. I can already do for the main ribbon bar but how do I do it for the same item in the quick access toolbar and application button list?

推荐答案

好吧"我不太确定自己在做什么,但是我假设你正在写办公室AddIn ...
看看 msdn .
在该页面上,您还将找到指向Office控件ID列表的链接,这将对您有所帮助
在某种程度上(如果您要针对)修改和修改内置控件.
Well I''m not quite sure, what you''re doing, but I''ll assume you''re writing an office AddIn...
Have a look at msdn.
On that page you will also find links to Office control ID lists, that will help you
to get at and modify builtin controls, to a certain extent, if that''s what you''re aiming at.


我想我已经在Fluent中找到了我的问题的答案2007 Ribbon设计的UI指南:

他们建议,组中显示的控件不得因选择而更改,并且禁用(显示为灰色),而不是将其从组中删除.
I think I have found the answer to my question in the Fluent UI Guidelines for the 2007 Ribbon Design:

They suggest that controls displayed in a group must not change as a result of selection and to disable (gray out), rather than remove them from the group.


这篇关于VC ++ 2010-Ribbon Bar-动态更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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