Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 24 Jul 2008 11:57:25 -0700 (PDT),    group: microsoft.public.win32.programmer.ui        back       


CTabCtrl doesn't like theme change   
I've got a CTabCtrl with the TCS_OWNERDRAWFIXED style set, it works
fine unless I switch the theme of my XP machine from Windows XP to
Windows Classic and back to Windows XP.  As soon as I switch the theme
the first time, the CTabCtrl starts acting differently - it stops
drawing its own background colors, but that's OK because in Windows
Classic I just fill the whole area with GetSysColor(COLOR_BTNFACE) and
life is good.  But when I switch back to Windows XP, the CTabCtrl
still refuses to draw his own background, but now the colors I want
are all swooshy and gradiated and stuff.

I know that the theme has changed (I'm intercepting the
WM_THEMECHANGED message) but I can't figure out what I need to tell
the CTabCtrl so he doesn't get all freaked out.

The other thing I could do, is to figure out how to draw the Windows
XP theme tab colors, but that sounds really unpleasant.

Any suggestions welcome!

Thanks,
Chris
date: Thu, 24 Jul 2008 11:57:25 -0700 (PDT)   author:   Chris Shearer Cooper

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us