BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TImageList and TListView D5 and XP

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Steve
Guest





PostPosted: Wed Jun 16, 2004 5:07 pm    Post subject: TImageList and TListView D5 and XP Reply with quote



I'm having a problem getting XP to display icons properly. I'm using D5 Ent,
compiling under Win2K.

I'm using ExtractIconEx() to extract icons from files, then add them to a
TImageList and displaying them in a TListView. It works perfectly in Win2K. But
in XP, some of the icons have a black border. This only happens when the
resolution is set to 32. At 16 it works fine.

I have tried:

il_Large.handle :=
ImageList_Create(32, 32, ILC_COLOR32 or ILC_MASK, 1, 4);

But it makes no difference.

Does anyone know how to resolve this issue?

TIA,
-Steve-




Back to top
Steve
Guest





PostPosted: Fri Jun 18, 2004 4:31 pm    Post subject: Re: TImageList and TListView D5 and XP Reply with quote



Since my main concern was displaying file associated icons, I resolved my problem
by using the handle to the system image list.

// il_Sytem : TImage List ;

il_System.Handle :=
SHGetFileInfo('C:',
0, FileInfo, SizeOf(FileInfo), SHGFI_SYSICONINDEX or SHGFI_SMALLICON);

-Steve-


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.