` Printed Icetips Article

Icetips Article



Windows API: Getting the handle of Clarion icons
2004-01-10 -- Randy Rogers
 
Newsgroups: sv.clarion.language

Thanks for the tip; i had already figured it out by the time i saw your
post.  here is what i did...if the second byte is a 1, swap the last 2 bytes
to create a long and subtract 1.  use this long in the loadicon call along
with hinst = 0.  this causes the system icons to get loaded.  if the second
byte is a 2, then the icons are in the rtl.  do the same trick with swapping
and subtracting but use an hinst for the rtl (i used loadlibrary to do
this).

So, i have it working, but could use one more question answered....how do i
determine what rtl to use.  it is probably already loaded.  is there a way
to identify the rtl that the current executable is using?



Printed November 21, 2024, 6:57 am
This article has been viewed/printed 35202 times.
Google search has resulted in 16 hits on this article since January 25, 2004.