改变现有MFC项目的风格 - 它甚至可能吗? [英] Change the style of an existing MFC project - is it even possible?

查看:176
本文介绍了改变现有MFC项目的风格 - 它甚至可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

这是情节:我有一个标准布局的项目 - 工具栏等。我被要求将布局更改为功能区。至少就目前而言,创建一个新项目似乎不是一种选择。有可能吗?怎么样?

提前谢谢!

Hi!
Here's the plot: I have a project with a standard layout - toolbars etc. I've been asked to change the layout to ribbon. Creating a new project doesn't seem to be an option, at least for now. Is it possible and how?
Thanks in advance!

推荐答案

当然可能,你可能最终会了解更多关于无论你的应用程序和MFC框架,你都会想知道。您在MFC应用程序中看到的所有对象都会通过向导添加到SDI / MDI应用程序(适当的任何位置),这意味着您可以通过注释或删除这些部分来删除它们。出于同样的原因,功能区只是SDI / MDI应用程序的一个附加功能,因此您可以手动添加向导通常执行的所有操作。



如果你曾经不得不改变工具栏,你会意识到所有的东西都存在,你只需要学习如何处理它们。功能区同样如此。
Sure it's possible, you'll likely end up knowing a lot more about both your application and the MFC framework then you'll ever want to know though. All of the objects you see in an MFC application are added by wizards onto the SDI/MDI application (wherever they're appropriate), which means, you can remove them by commenting or simply deleting those sections. By the same token, the ribbon is just an addition to an SDI/MDI application, so you can add all those things the wizards usually do by hand.

If you've ever had to alter toolbars, you'll realize all the pieces are there and you just have to learn how to deal with them. Same thing with the ribbon.


参见这些CodeProject文章 [ ^ ]。


这篇关于改变现有MFC项目的风格 - 它甚至可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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