CImageList Class
Provides the functionality of the Windows common image list control.
class CImageList : public CObject
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CImageList object. |
Public Methods
Name |
Description |
---|---|
Adds an image or images to an image list. |
|
Attaches an image list to a CImageList object. |
|
Begins dragging an image. |
|
Copies an image within a CImageList object. |
|
Initializes an image list and attaches it to a CImageList object. |
|
Deletes an image list. |
|
Called by the CWinApp idle-time handler to delete any temporary CImageList object created by FromHandle. |
|
Detaches an image list object from a CImageList object and returns a handle to an image list. |
|
Locks updates during a drag operation and displays the drag image at a specified position. |
|
Unlocks the window and hides the drag image so that the window can be updated. |
|
Moves the image that is being dragged during a drag-and-drop operation. |
|
Shows or hides the drag image during a drag operation, without locking the window. |
|
Draws the image that is being dragged during a drag-and-drop operation. |
|
Draws an image list item in the specified device context. The function uses the specified drawing style and blends the image with the specified color. |
|
Draws an image from an image list. |
|
Ends a drag operation. |
|
Creates an icon based on an image and mask in an image list. |
|
Returns a pointer to a CImageList object when given a handle to an image list. If a CImageList object is not attached to the handle, a temporary CImageList object is created and attached. |
|
Returns a pointer to a CImageList object when given a handle to an image list. If a CImageList object is not attached to the handle, NULL is returned. |
|
Retrieves the current background color for an image list. |
|
Gets the temporary image list that is used for dragging. |
|
Retrieves the number of images in an image list. |
|
Retrieves information about an image. |
|
Retrieves m_hImageList. |
|
Reads an image list from an archive. |
|
Removes an image from an image list. |
|
Replaces an image in an image list with a new image. |
|
Sets the background color for an image list. |
|
Creates a new drag image. |
|
Resets the count of images in an image list. |
|
Adds the zero-based index of an image to the list of images to be used as overlay masks. |
|
Writes an image list to an archive. |
Public Operators
Name |
Description |
---|---|
Returns the HIMAGELIST attached to the CImageList. |
Public Data Members
Name |
Description |
---|---|
A handle containing the image list attached to this object. |
Remarks
An "image list" is a collection of same-sized images, each of which can be referred to by its zero-based index. Image lists are used to efficiently manage large sets of icons or bitmaps. 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 Microsoft Win32 application programming interface (API) provides image list functions that enable you to draw images, create and destroy image lists, add and remove images, replace images, merge images, and drag images.
This control (and therefore the CImageList class) is available only to programs running under Windows 95/98 and Windows NT version 3.51 and later.
For more information on using CImageList, see Controls and Using CImageList.
Inheritance Hierarchy
CImageList
Requirements
Header: afxcmn.h