Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - AddIconHandle (ActiveX)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AddIconHandle (ActiveX)

 Post Reply Post Reply
Author
Message
robs View Drop Down
Groupie
Groupie


Joined: 09 November 2003
Status: Offline
Points: 84
Post Options Post Options   Thanks (0) Thanks(0)   Quote robs Quote  Post ReplyReply Direct Link To This Post Topic: AddIconHandle (ActiveX)
    Posted: 28 November 2003 at 10:13pm

The StaticBars sample shows how to use AddIconHandle to add icons from a bitmap file. I couldn't find an example of how to use a resource file, so here's mine.

To load an icon from a resource file:

Dim p As IPictureDisp
Set p = LoadResPicture(101, 1)
CommandBars.AddIconHandle p.Handle, ID, 0, False

 

 

 

 



Edited by robs
Back to Top
Maui View Drop Down
Groupie
Groupie


Joined: 10 June 2004
Status: Offline
Points: 95
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maui Quote  Post ReplyReply Direct Link To This Post Posted: 19 December 2004 at 5:43am

Thank you for your post.

I used it to load an icon from the resource and into the TaskPanel

    Dim p As IPictureDisp
    Set p = LoadResPicture(101, vbResIcon)
    wndToolBox.Icons.AddIcon p.Handle, 1, xtpImageNormal
    Set p = Nothing

 

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.187 seconds.