addiconhandle needs to know if the icon is alpha |
Post Reply |
Author | |
jasonjiang9999
Newbie Joined: 29 March 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |