CTabCtrl Background in XP Themed
-
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
-
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
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 beCOLOR_WINDOW
(grey) by default. Instead of theCTabCtrl
derived control, you may want to try using aCPropertySheet
(andCPropertyPage
s) 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 -
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 beCOLOR_WINDOW
(grey) by default. Instead of theCTabCtrl
derived control, you may want to try using aCPropertySheet
(andCPropertyPage
s) 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)comHi 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.
-
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.
-