Class ICustImage
See Also: Class ICustomControl, Custom Controls.
class ICustImage : public ICustomControl
Description:
The custom image control provides a recessed area in the dialog to display a bitmap image.
To initialize the pointer to the control call:
Prototype:
ICustImage *GetICustImage(HWND hCtrl);
To release the control call:
Prototype:
ReleaseICustImage(ICustImage *ici);
The value to use in the Class field of the Custom Control Properties dialog is: CustImage
Methods:
Prototype:
virtual void SetImage(HIMAGELIST hImage, int index, int w, int h)=0;
Remarks:
This method sets the image to display.
Parameters:
HIMAGELIST hImage
An image list. An image list is a collection of same-sized images, each of which can be referred to by its index. Image lists are used to efficiently manage large sets of icons or bitmaps in Windows. All images in an image list are contained in a single, wide bitmap in screen device format. An image list may also include a monochrome bitmap that contains masks used to draw images transparently (icon style). The Windows API provides image list functions, which enable you to draw images, create and destroy image lists, add and remove images, replace images, and merge images.
int index
This is the index of the image to display in the image list.
int w
The image width.
int h
The image height.