J
JB
I am using SHGetFileInfo to get the list of icons for a bunch of
files, and taking those icons and putting them in an ImageList. The
ImageList is then being used with a ListView control to display the
list of files and their associated icons.
Unfortunately the alpha transparencies appear as black in the icons.
To resolve this I tried (as per the microsoft article:
http://msdn2.microsoft.com/en-us/library/aa289524(VS.71).aspx) to add
a manifest to the exe file, I also changed the colordepth of the
ImageList to: ColorDepth.Depth32Bit.
The icons still have a black border.
I am using VS2005, .NET framework 2.0 on an XP machine.
The manifest I used is below.
Can anyone suggest anything else I can do to get the icons without the
black border?
Thanks.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Winweb.WindowsApplication6"
type="win32"
/>
<description>.NET control deployment tool</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
files, and taking those icons and putting them in an ImageList. The
ImageList is then being used with a ListView control to display the
list of files and their associated icons.
Unfortunately the alpha transparencies appear as black in the icons.
To resolve this I tried (as per the microsoft article:
http://msdn2.microsoft.com/en-us/library/aa289524(VS.71).aspx) to add
a manifest to the exe file, I also changed the colordepth of the
ImageList to: ColorDepth.Depth32Bit.
The icons still have a black border.
I am using VS2005, .NET framework 2.0 on an XP machine.
The manifest I used is below.
Can anyone suggest anything else I can do to get the icons without the
black border?
Thanks.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Winweb.WindowsApplication6"
type="win32"
/>
<description>.NET control deployment tool</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>