Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Question about XP themes

Question about XP themes

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Marcus Spitzmiller
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • M Marcus Spitzmiller

      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

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      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"

      M 1 Reply Last reply
      0
      • N Neville Franks

        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"

        M Offline
        M Offline
        Marcus Spitzmiller
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups