Compartilhar via


CImageList Members

Base Class Members

Data Members

Construction

Attributes

Operations

Base Class Members

CObject Members

Data Members

m_hImageList

A handle containing the image list attached to this object.

Construction

CImageList

Constructs a CImageList object.

Create

Initializes an image list and attaches it to a CImageList object.

Attributes

DeleteTempMap

Called by the CWinApp idle-time handler to delete any temporary CImageList object created by FromHandle.

FromHandle

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.

FromHandlePermanent

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.

GetBkColor

Retrieves the current background color for an image list.

GetImageCount

Retrieves the number of images in an image list.

GetImageInfo

Retrieves information about an image.

GetSafeHandle

Retrieves m_hImageList.

operator HIMAGELIST

Returns the HIMAGELIST attached to the CImageList.

SetBkColor

Sets the background color for an image list.

Operations

Add

Adds an image or images to an image list.

Attach

Attaches an image list to a CImageList object.

BeginDrag

Begins dragging an image.

Copy

Copies an image within a CImageList object.

DeleteImageList

Deletes an image list.

Detach

Detaches an image list object from a CImageList object and returns a handle to an image list.

DragEnter

Locks updates during a drag operation and displays the drag image at a specified position.

DragLeave

Unlocks the window and hides the drag image so that the window can be updated.

DragMove

Moves the image that is being dragged during a drag-and-drop operation.

DragShowNolock

Shows or hides the drag image during a drag operation, without locking the window.

Draw

Draws the image that is being dragged during a drag-and-drop operation.

DrawEx

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.

DrawIndirect

Draws an image from an image list.

EndDrag

Ends a drag operation.

ExtractIcon

Creates an icon based on an image and mask in an image list.

GetDragImage

Gets the temporary image list that is used for dragging.

Read

Reads an image list from an archive.

Remove

Removes an image from an image list.

Replace

Replaces an image in an image list with a new image.

SetDragCursorImage

Creates a new drag image.

SetImageCount

Resets the count of images in an image list.

SetOverlayImage

Adds the zero-based index of an image to the list of images to be used as overlay masks.

Write

Writes an image list to an archive.

See Also

Reference

CImageList Class

Hierarchy Chart

Other Resources

CObject Members