Print Page | Close Window

Black shell icons in Report Control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=12755
Printed Date: 16 May 2024 at 11:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Black shell icons in Report Control
Posted By: g_j_a_i_n
Subject: Black shell icons in Report Control
Date Posted: 21 November 2008 at 5:27am

Hello,

I get the shell's image list using SHGetFileInfo.

I set this image list to CXTPReportControl, but the icons appear black in some parts like shown below:

   

Please help. I think it is related to transparent colors (32 bit images). How do I fix it.

Regards,
Gautam Jain




Replies:
Posted By: Oleg
Date Posted: 21 November 2008 at 5:32am

Hi,

Send request to support, we will create sample.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: SergeyS
Date Posted: 25 February 2009 at 8:48pm
Is there any resolution on this issue?

Thank you,
Sergey


Posted By: SuperMario
Date Posted: 26 February 2009 at 8:40am
Try adding the icons to the Report.Icons collection first.


Posted By: g_j_a_i_n
Date Posted: 26 February 2009 at 12:22pm

//Use the CXTShellPidl class instead. This works.

CXTShellPidl shell;
HIMAGELIST hImgList = shell.GetSystemImageList(SHGFI_SMALLICON);


Posted By: SergeyS
Date Posted: 26 February 2009 at 3:03pm
Icons are added to the Report.Icons collection.
I cannot use CXTShellPidl class because I only need icons for specified file extensions and Report control is used in a .NET application.
I've created a small C# test app with Report control and it works fine, no black background. There must be something different between our application and my test app, but I couldn't find it yet.


Posted By: Oleg
Date Posted: 27 February 2009 at 3:02am
Hi,
 
Guess your test application has 6.0 comctrl manifest, but your appliation no.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: SergeyS
Date Posted: 27 February 2009 at 7:12pm
Yes, the test app was loading comctrl 6.0 and my application comctrl 6.0 (actually both 5 and 6.), but non of them had manifest. I was starting test app from VS and that caused usage of comctrl 6.0. When I started it from command line it loaded comctrl 5.0.
So, anyway the solution is to use manifest and put a dependency on comctrl 6.0.

Thanks to everyone.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net