MImgLoadFromHandle
hImage = MImgLoadFromHandle( hHandle, nType )
Loads an image from an API handle.
Parameters
hHandle
Number: The handle to load from
nType
Number: Type of hHandle. Can be one of the following supported image types:
MIMG_TYPE_BMP |
The type is HBITMAP |
MIMG_TYPE_ICO |
The type is HICON |
Return
Number: Handle of the image or 0 if an error occurs
Example
In this example the icon of a form window is loaded:
! Get the icon
Set hHandle = SalSendMsg( hWnd, WM_GETICON, ICON_SMALL, 0 )
! Load image from handle
Set hImage = MImgLoadFromHandle( hHandle, MIMG_TYPE_ICON )
See also
Load functions
Created with the Personal Edition of HelpNDoc: Create cross-platform Qt Help files