为 MFC 应用程序换肤
我见过一些很酷的应用程序,它们的皮肤也很漂亮。 我是 MFC 新手,我想创建一个具有更改皮肤功能的应用程序。 MFC中是如何实现的呢? 我已经检查了一些教程,但有点过时了。 谢谢...
I have seen some cool applications with great looking skins. I'm new to MFC and I want to create an application with the capability of changing skins. How is it done in MFC? I've checked some tutorials but are a bit outdated. Thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一般来说,MFC 已经过时了,但您可能已经知道这一点。
如果你愿意付钱的话,似乎有一个供应商提供换肤组件。
请参阅 BCGSoft。
另一种可能是寻找其他平台,例如 Mozilla 的 XULRunner 框架,其中 Songbird (开发者中心) 基于。 请参阅外观插件和XUL 的乐趣。
(来源:songbirdnest.com)
(来源:songbirdnest.com)
MFC in general is outdated, but you probably already know this.
If you are willing to pay up, there seems to be a vendor that provides skinning component.
See BCGSoft.
An alternative maybe to look for other platform such as Mozilla's XULRunner framework, which Songbird (Developer Center) is based on. See Appearance Add-on and The Joy of XUL.
(source: songbirdnest.com)
(source: songbirdnest.com)
只是一个注释。 UI 换肤的概念是一个通用的软件设计任务(基本上是一个插件概念),并且(据我所知)不被任何语言或框架明确支持为服务MFC。 即,没有“MFC 方式”制作皮肤,也没有“.NET 方式”。 但您可以使用其中任何一个来设计蒙皮支持。
也就是说,某些语言或框架可能比其他语言或框架更容易实现换肤支持。 我通常会推荐 C#/.NET 进行 UI 编码,但设计插件/皮肤支持的很大一部分是关于通用代码机制和接口,并且语言/框架的问题相当没有意义。 如果您对自己编写框架不感兴趣,那么许多语言都有现成的框架可以为您完成此操作。
一些可能有用的链接:
插件概念(请注意某些语言的插件框架列表底部)
外观设计模式
中介者设计模式
一般信息关于皮肤
Just a note. The concept of UI skinning is a general software design task (basically a plugin concept) and is not (to my knowledge) explicitly supported as a service by any language or framework like MFC. I.e. there's no "MFC-way" of doing skins, and no ".NET-way" either. But you can use either of these to design skinning support.
That said, some languages or frameworks might make it easier to implement skinning support than others. I would generally recommend C#/.NET for UI coding, but large portions of designing plugin/skin support is about general code mechanisms and interfaces, and there the question of language/framework is rather moot. There are also ready frameworks for many languages that does this for you, if you're not interested in the exercise of writing it yourself.
Some links that could be useful:
Plugin concept (note the list of plugin frameworks for some languages at the bottom)
Facade design pattern
Mediator design pattern
General info about skins