Re: Help with Windows API ImageList_LoadImage needed
- Posted by 1evan at sbcglobal.net
Aug 20, 2003
hi : This parameter can be NULL if you are loading an image from a file
(which I am).
lpbmp: If the /uFlags/ parameter includes LR_LOADFROMFILE (which it
does), /lpbmp/ is the address of
a null-terminated string that names the file containing the
image to load. (which it is).
If /hi/ is NULL and LR_LOADFROMFILE is not specified (but it
is), the low-order
word of this parameter must be the identifier of an OEM image
to load.
I believe Robert Craig wrote that the C_ types were identical in how
they were handled, except for C_DOUBLE. COLORREF might need to be a
double, I'm not sure.
Anyway, I decided to go with LoadImage instead. Thanks for your advice,
though.
Al Getz wrote:
>ImageList_LoadImage = link_c_func(comctl, "ImageList_LoadImage",
>{C_INT,C_POINTER,C_INT,C_INT,C_UINT,C_UINT,C_UINT},C_INT)
>
>CLR_DEFAULT = #FF000000
>LR_LOADFROMFILE = #0010
>Image = allocate_string("MyIcon.ico")
>c_func(ImageList_LoadImage,{NULL,Image,16,1,CLR_DEFAULT,1,LR_LOADFROMFILE})
>
>
>Hello there,
>
>For that particular function you need to check your types in the
>function link as well as note the following:
>
>hi (very first parameter of this function)
>
>Handle to the instance that contains the resource.
>If the hi parameter is zero, the low-order word of this parameter must
>be the identifier of the OEM image to load. The OEM image identifiers
>are defined in WINUSER.H. Following are the identifier prefixes and
>their meanings:
>
>Prefix Meaning
>OBM_ OEM bitmaps
>OIC_ OEM icons
>OCR_ OEM cursors
>
>Take care,
>Al
>
>--^----------------------------------------------------------------
>This email was sent to: 1evan at sbcglobal.net
>
>
>TOPICA - Start your own email discussion group. FREE!
>
>
|
Not Categorized, Please Help
|
|