 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Steve Guest
|
Posted: Wed Jun 16, 2004 5:07 pm Post subject: TImageList and TListView D5 and XP |
|
|
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
|
Posted: Fri Jun 18, 2004 4:31 pm Post subject: Re: TImageList and TListView D5 and XP |
|
|
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 |
|
 |
|
|
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
|
|