Print Page | Close Window

LoadIconFromResource Method

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=12812
Printed Date: 07 October 2024 at 8:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadIconFromResource Method
Posted By: nighthawk
Subject: LoadIconFromResource Method
Date 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



Replies:
Posted By: nighthawk
Date 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


Posted By: Oleg
Date 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



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