Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Black shell icons in Report Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Black shell icons in Report Control

 Post Reply Post Reply
Author
Message
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Topic: Black shell icons in Report Control
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 November 2008 at 5:32am

Hi,

Send request to support, we will create sample.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
SergeyS View Drop Down
Newbie
Newbie
Avatar

Joined: 23 August 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote SergeyS Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2009 at 8:48pm
Is there any resolution on this issue?

Thank you,
Sergey
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2009 at 8:40am
Try adding the icons to the Report.Icons collection first.
Back to Top
g_j_a_i_n View Drop Down
Groupie
Groupie
Avatar

Joined: 27 August 2005
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote g_j_a_i_n Quote  Post ReplyReply Direct Link To This Post Posted: 26 February 2009 at 12:22pm

//Use the CXTShellPidl class instead. This works.

CXTShellPidl shell;
HIMAGELIST hImgList = shell.GetSystemImageList(SHGFI_SMALLICON);
Back to Top
SergeyS View Drop Down
Newbie
Newbie
Avatar

Joined: 23 August 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote SergeyS Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SergeyS View Drop Down
Newbie
Newbie
Avatar

Joined: 23 August 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote SergeyS Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.