Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

skinning MFC applications

Tags:

skinning

mfc

skin

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...

like image 935
Owen Avatar asked Oct 15 '26 05:10

Owen


2 Answers

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.

alt text

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.

alt text
(source: songbirdnest.com)

alt text
(source: songbirdnest.com)

like image 53
Eugene Yokota Avatar answered Oct 16 '26 18:10

Eugene Yokota


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

like image 21
sharkin Avatar answered Oct 16 '26 20:10

sharkin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!