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: Wed, 28 May 2008 11:05:00 -0700,    group: microsoft.public.win32.programmer.ui        back       


ListView with icons in only 2 columns   
When I add the LVS_EX_SUBITEMIMAGES style the ListView sends LVN_GETDISPINFO 
messages to get icons for every column. If I don't provide an icon it keeps 
asking even though I set the mask to LVIF_DI_SETITEM. How can I display icons 
in more than one column, but not every column? HELP!
date: Wed, 28 May 2008 11:05:00 -0700   author:   scarless

Re: ListView with icons in only 2 columns   
You could handle NM_CUSTOMDRAW and draw the column in question yourself.

"scarless"  wrote in message 
news:C4A83CE4-16B0-4921-B5FA-44E2F7EC8882@microsoft.com...
> When I add the LVS_EX_SUBITEMIMAGES style the ListView sends 
> LVN_GETDISPINFO
> messages to get icons for every column. If I don't provide an icon it 
> keeps
> asking even though I set the mask to LVIF_DI_SETITEM. How can I display 
> icons
> in more than one column, but not every column? HELP!
>
date: Thu, 29 May 2008 08:15:14 +1000   author:   Jon Potter am

Re: ListView with icons in only 2 columns   
scarless wrote:
> When I add the LVS_EX_SUBITEMIMAGES style the ListView sends LVN_GETDISPINFO 
> messages to get icons for every column. If I don't provide an icon it keeps 
> asking even though I set the mask to LVIF_DI_SETITEM. How can I display icons 
> in more than one column, but not every column? HELP!

Please don't multipost.
http://www.blakjak.demon.co.uk/mul_crss.htm

This was also asked in microsoft.public.platformsdk.ui_shell

-- 
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
date: Thu, 29 May 2008 09:26:37 +0100   author:   Dean Earley

Re: ListView with icons in only 2 columns   
scarless schrieb:
> When I add the LVS_EX_SUBITEMIMAGES style the ListView sends LVN_GETDISPINFO 
> messages to get icons for every column. If I don't provide an icon it keeps 
> asking even though I set the mask to LVIF_DI_SETITEM. How can I display icons 
> in more than one column, but not every column? HELP!
Have you tried setting the image to I_IMAGENONE (-2)?

Timo
-- 
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
date: Thu, 29 May 2008 10:55:05 +0200   author:   Timo Kunze

Google
 
Web ureader.com


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