Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Theme with MFC – Possible?

Status
Not open for further replies.

d00ape

Programmer
Apr 2, 2003
171
SE
Any got a tip on how to create a theme for an MFC-dialog project?
 
I don't know what do you mean, but I believe you can use the internet browser ActiveX component for that.

Ion Filipski
1c.bmp
 
MFC is designed to use the regular windwows settings in Desktop->Properties->Appearance. It's not really designed to support application based themes.

You can of course override every controls'/dialogs' OnPaint (defined in CWnd) and let them do something wild...

To handle themes you'd have to implement a framework that, based on some theme-info, paints in this-or-that way.

If you want to go really crazy and use non-rectangular windows its a bit trickier...see SetWindowRgn in MSDN.

/Per

"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top