MImgCreateHICON

Functions ››
Parent Previous Next

hIcon = MImgCreateHICON( hImage )

Creates a HICON from an image.

Parameters
hImage
Number: Handle of the image

Return
Number: Handle of the icon if successful or 0 if an error occurs

Example
In this example an icon is created and displayed in a picture:

Set hIcon = MImgCreateHICON( hImage )
Call SalPicSetHandle( pic1, PIC_FormatIcon, hIcon )

Remarks
Don't forget to delete the created icon with DestroyIcon.

See also
MImgCreateCopy
MImgCreateCopyEx
MImgCreateHBITMAP
MImgCreateVisPic

Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites