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. CTabCtrl Background in XP Themed

CTabCtrl Background in XP Themed

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
6 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.
  • R Offline
    R Offline
    RickyC
    wrote on last edited by
    #1

    Hi All, I've been working on a project that makes use of CTabCtrl in a derived class. My problem is that when my application runs on Windows XP Themed, the background color of that tabs that should be white (?)- default - are gray as the dialogs that they are. So it causes a strange feeling... the tabs titles are white and beautiful... but the tabs contents are gray... :^) Does anybody already pass through this or have some idea of how can I avoid this? Maybe makes the color of my dialogs (tab contents) transparent... I just don't know :( ps.: its important that works on XP Themed and other versions of Windows too. Thanks all for the attention, Cheers! -- modified at 10:16 Thursday 15th September, 2005

    R 1 Reply Last reply
    0
    • R RickyC

      Hi All, I've been working on a project that makes use of CTabCtrl in a derived class. My problem is that when my application runs on Windows XP Themed, the background color of that tabs that should be white (?)- default - are gray as the dialogs that they are. So it causes a strange feeling... the tabs titles are white and beautiful... but the tabs contents are gray... :^) Does anybody already pass through this or have some idea of how can I avoid this? Maybe makes the color of my dialogs (tab contents) transparent... I just don't know :( ps.: its important that works on XP Themed and other versions of Windows too. Thanks all for the attention, Cheers! -- modified at 10:16 Thursday 15th September, 2005

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      RickyC wrote: makes use of CTabCtrl in a derived class. The default CTabCtrl displays a white background (as expected) on my themed XP system. Perhaps the derived control you're using swaps in modeless dialogs when the user switches tabs? If so, the dialog's background will be COLOR_WINDOW (grey) by default. Instead of the CTabCtrl derived control, you may want to try using a CPropertySheet (and CPropertyPages) and see if that gets you the desired behavior. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      R 1 Reply Last reply
      0
      • R Ravi Bhavnani

        RickyC wrote: makes use of CTabCtrl in a derived class. The default CTabCtrl displays a white background (as expected) on my themed XP system. Perhaps the derived control you're using swaps in modeless dialogs when the user switches tabs? If so, the dialog's background will be COLOR_WINDOW (grey) by default. Instead of the CTabCtrl derived control, you may want to try using a CPropertySheet (and CPropertyPages) and see if that gets you the desired behavior. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        R Offline
        R Offline
        RickyC
        wrote on last edited by
        #3

        Hi Ravi, thanks for your answer. I have been looking into CPropertySheet and the problem that I see, is that CPropertySheet behave like a Modal Dialog isn't? And my CTabCtrl is inside a Dialog, like part of the controls of that Dialog. Can I use the CPropertySheet like a normal MFC Control otherwise than a separated Modal Dialog? Well, I'll try'it anyway :) Thank you very much for your patience and assistance.

        R 1 Reply Last reply
        0
        • R RickyC

          Hi Ravi, thanks for your answer. I have been looking into CPropertySheet and the problem that I see, is that CPropertySheet behave like a Modal Dialog isn't? And my CTabCtrl is inside a Dialog, like part of the controls of that Dialog. Can I use the CPropertySheet like a normal MFC Control otherwise than a separated Modal Dialog? Well, I'll try'it anyway :) Thank you very much for your patience and assistance.

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          Can I use the CPropertySheet like a normal MFC Control Yes, absolutely! See this[^] article for instructions. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

          R 1 Reply Last reply
          0
          • R Ravi Bhavnani

            Can I use the CPropertySheet like a normal MFC Control Yes, absolutely! See this[^] article for instructions. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

            R Offline
            R Offline
            RickyC
            wrote on last edited by
            #5

            Thanks Ravi! You help me a lot! :)

            R 1 Reply Last reply
            0
            • R RickyC

              Thanks Ravi! You help me a lot! :)

              R Offline
              R Offline
              Ravi Bhavnani
              wrote on last edited by
              #6

              Glad to be of help! /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

              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