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: Sat, 6 Sep 2008 08:56:29 -0700,    group: microsoft.public.win32.programmer.ui        back       


Problem about change list header control color   
Dear all,
I'm trying to change the default background color of WTL's ListViewCtrl.
I've got the following method.
First of all, I reimplement a CHeaderCtrl's EraseBkGnd message.
Here, I change the background color of the control to the desired color.
And then, I subclasswindow a CHeaderCtrl object to the header control after 
the list is created.
When debugging the program, I can really find that my onerasebkgnd is called 
and the color of the rc is changed.
But when the control is shown, the background color of the header control is 
the system's default color.
Do I miss anything?
Any help would be appreciated and thanks in advance.
date: Sat, 6 Sep 2008 08:56:29 -0700   author:   Kun Niu

Google
 
Web ureader.com


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