在运行时编辑mfc功能区? [英] Edit an mfc ribbon at runtime?

查看:96
本文介绍了在运行时编辑mfc功能区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!我看到有一种方法可以在运行时向功能区添加新类别,但它只创建一个空类别。我想知道开发人员如何为这个新类别添加项目?它实际上是否可能?(它应该是,'因为只有一个空类别没有意义,至少对我来说:/)

Hi again! I see there's a method for adding new categories to a ribbon at runtime, but it creates just an empty category. I wonder how the developer can add items to this new category? Is it actually possible at all?(it should be, 'cause having just an empty category makes no sense, at least to me :/)

推荐答案

它是可能的在运行时更新(编辑)功能区。有两个条件:

1)添加资源,

2)从资源加载功能区



有一个看这里:

演练:使用MFC创建功能区应用程序 [ ^ ]

演练:更新MFC Scribble应用程序(第1部分) [ ^ ]

深思熟虑:更新MFC Scribble应用程序(第2部分) [ ^ ]
It is possoble to update ("edit") ribbon at runtime. There are 2 conditions:
1) add resource,
2) load ribbon from resource

Have a look here:
Walkthrough: Creating a Ribbon Application By Using MFC[^]
Walkthrough: Updating the MFC Scribble Application (Part 1)[^]
Walkthrough: Updating the MFC Scribble Application (Part 2)[^]


这篇关于在运行时编辑mfc功能区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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