` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Windows API: Getting the handle of Clarion icons
2004-01-10 -- Dennis E Evans
 
Newsgroups: sv.clarion.language Hi all, "Randy Rogers" wrote in message > I need to use the LoadImage (or LoadIcon) api call to get the handle of an > icon used on a control. This all works well when the icon is _NOT_ one of > the internally defined icons (the ones in EQUATES.clw). When the control > uses one of the internal icons, like ICON:HAND, prop:icon returns the string > identified in equates.clw. How do I use these internal icon values with an > api call like LoadImage or LoadIcon? Parse the string and get the values in the last two positions, 02, 7F is an example, Swap those two values 7F02 and use that as the parameter to LoadIcon, leave the instance number null. That will get the predefined icons and cursors used by windows, see msdn for a list. The other icons from clarion you might be able to get with the value and instance number but I have never tried.


Today is May 8, 2024, 7:42 pm
This article has been viewed 35117 times.
Google search has resulted in 46 hits on this article since January 25, 2004.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: