Print Page | Close Window

addiconhandle needs to know if the icon is alpha

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15744
Printed Date: 24 October 2025 at 4:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: addiconhandle needs to know if the icon is alpha
Posted By: jasonjiang9999
Subject: addiconhandle needs to know if the icon is alpha
Date Posted: 29 November 2009 at 12:52pm
hello friends,
I got an application needs to list the most recent open files in the popup button in commandbars.
 
I got no problem to get the icon handle with SHGetFileInfo API.
 
but when I try to use addIconHandle to add the icon to the commandbars, there is a problem when setting the "Alpha" parameter.
 
when I use    mainCommandbars.AddIconHandle fileIconHandle, fileIconHandle, xtpImageNormal, True
 
when I use    mainCommandbars.AddIconHandle fileIconHandle, fileIconHandle, xtpImageNormal, false
 
it seems when icon has no alpha channel, the parameter has to be set to false , otherwise it wouldn't show. But when set parameter to false, some icons with alpha channel would show a black around itself instead of shadow.
 
is there  a way to tell from icon handle if the icon has alpha channel?
 
 
thank you very much!!!
 


-------------
XtremeSuitePro ActiveX 13.1
Windows XP SP3
Visual Basic 6.0 SP6



Replies:
Posted By: Oleg
Date Posted: 01 December 2009 at 4:54am
Hi,
 
Please send sample to mailto:support@codejock.com - support@codejock.com  , we will try to find some solution for you.


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



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