Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - addiconhandle needs to know if the icon is alpha
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

addiconhandle needs to know if the icon is alpha

 Post Reply Post Reply
Author
Message
jasonjiang9999 View Drop Down
Newbie
Newbie
Avatar

Joined: 29 March 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote jasonjiang9999 Quote  Post ReplyReply Direct Link To This Post Topic: addiconhandle needs to know if the icon is alpha
    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
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: 01 December 2009 at 4:54am
Hi,
 
Please send sample to support@codejock.com  , we will try to find some solution for you.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.156 seconds.