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: Tue, 3 Jun 2008 21:57:20 -0700 (PDT),    group: microsoft.public.win32.programmer.ui        back       


Tree Ctrl and Icon   
Hi,

I am using tree ctrl which has icons for each item and depending on
some condition I need to make some tree items disabled. I could do
almost everything with NM_CUSTOMDRAW _except for images_.

From research I have done so far, I know that I need to use an
operation which gives the same effect as CImageList::DrawEx with
ILD_BLEND50 as parameter (dither the image).

In NM_CUSTOMDRAW, if I decide to draw the item _completely_ (*pResult
= CDRF_SKIPDEFAULT), I should be able to use directly use
CImageList::DrawEx with ILD_BLEND50. But that means I have to draw the
item text as well and I want to avoid that since tree ctrl seem to do
that nicely.

Therefore, I wanted to know whether there is a way by which I can:
a) Add icon somehow which is already with effect ILD_BLEND50 (doing it
programmatically)

- OR-

b) Just draw the icon or let tree ctrl know what effect to use for
icon of particular item.

Thanks in advance,
-Neel.
date: Tue, 3 Jun 2008 21:57:20 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


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