Question about XP themes
-
I am definitely missing something here, and I'm hoping that someone can provide an explanation about this question around XP themes. - I am using MFC, by the way. In a nutshell, I guess I just don't really understand what all of this is doing. I know that you load up the dll, and then start calling functions like drawthemebackground and things like that. But - how is this different than the standard functionality provided in MFC? Say I have a regular CButton on a form. If I run this on w2k or xp classic mode, it looks like the regular button that we all know and love. If I turn on a theme in XP, like the default one with the blue titlebar and rounded edged buttons, the button automatically looks like what I'd expectn in XP, with the rounded edged button, different color text when you hover, etc... So - obviously I am missing something, but why go through all of this dll loading, calling functions, etc...when it appears that MFC is already handling this stuff? What is the benefit? Confusedly yours, Marcus Spitzmiller "Why must life be so hard? Why must I fail at every attempt at masonry?" - Homer
-
I am definitely missing something here, and I'm hoping that someone can provide an explanation about this question around XP themes. - I am using MFC, by the way. In a nutshell, I guess I just don't really understand what all of this is doing. I know that you load up the dll, and then start calling functions like drawthemebackground and things like that. But - how is this different than the standard functionality provided in MFC? Say I have a regular CButton on a form. If I run this on w2k or xp classic mode, it looks like the regular button that we all know and love. If I turn on a theme in XP, like the default one with the blue titlebar and rounded edged buttons, the button automatically looks like what I'd expectn in XP, with the rounded edged button, different color text when you hover, etc... So - obviously I am missing something, but why go through all of this dll loading, calling functions, etc...when it appears that MFC is already handling this stuff? What is the benefit? Confusedly yours, Marcus Spitzmiller "Why must life be so hard? Why must I fail at every attempt at masonry?" - Homer
Ut isn't MFC that is handling XP Themes but the Manifest file or .RC entry you add that tells Windows to use XP Themes. I haven't used any of the drawthemexxx functions yet, but my understanding is that if you are using any of your own owner draw controls and you want them to look like XP controls then you use this stuff. Hope that helps. Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
-
Ut isn't MFC that is handling XP Themes but the Manifest file or .RC entry you add that tells Windows to use XP Themes. I haven't used any of the drawthemexxx functions yet, but my understanding is that if you are using any of your own owner draw controls and you want them to look like XP controls then you use this stuff. Hope that helps. Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
That was so rude of me....I forgot to reply. Thanks very much for the answer - that makes sense, and makes me feel a whole lot better :) Marcus Spitzmiller "Why must life be so hard? Why must I fail at every attempt at masonry?" - Homer