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

LoadIconFromResource Method

 Post Reply Post Reply
Author
Message
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Topic: LoadIconFromResource Method
    Posted: 27 November 2008 at 4:16pm
I was looking at the new LoadIconFromResource method added to 12.1.  The documentation doesn't say what several of the parameters are.  Can you explain what the Module, Resource, and Command parameters refer to?  Perhaps also give an example?

Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post Posted: 27 November 2008 at 4:29pm
Well, I realized the LoadBitmapFromResource method has the same parameters so I can see now what the Resource and Command parameters do. 

I'm still having a little trouble with the Module parameter.  My resource file is currently stored in my programs executable file.  How do I get the handle to the currently running executable?
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3
Language: Visual Basic 6.0
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: 28 November 2008 at 6:43am
Hi,
 
Use App.hInstance to get handle. But you have compile app and run as exe.
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.188 seconds.