IASImageMenu::put_Image

This method replaces one item image with another.

Syntax

HRESULT put_Image( long index, OLE_HANDLE hImage, OLE_HANDLE hImageMask, BOOL fBitmap );

Parameters

index
[in] Index of the item whose image is replaced.
hImage
[in] Handle to the new image.
hImageMask
[in] Handle to the image mask. Masks are not needed for icons.
fBitmap
[in] Boolean that is set to TRUE if the image is a bitmap, or to FALSE if it is an icon.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that the argument is invalid. E_OUTOFMEMORY indicates that the device is out of memory.

Remarks

Images may be either bitmaps or icons. If the images are bitmaps, a mask must also be supplied.