IASImageMenu::get_Image
This method gets the image associated with a menu item, specified by its menu index.
Syntax
HRESULT get_Image( long index OLE_HANDLE *phImage OLE_HANDLE *phImageMask BOOL *pfBitmap );
Parameters
- index
- [in] Index of the item associated with the image.
- phImage
- [out] Pointer to a handle to an image.
- phImageMask
- [out] Pointer to the handle to the image mask. Masks are not needed for icons.
- pfBitmap
- [out] Pointer to a 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.
Remarks
Images may be either bitmaps or icons. If the images are bitmaps, a mask must also be supplied.
See Also
IASImageMenu::get_FocusIndex