请问:HIMAGELIST的基本操作,如取图象,添加图象,更改图象
请教:HIMAGELIST的基本操作,如取图象,添加图象,更改图象
请教:HIMAGELIST的基本操作,如取图象,添加图象,更改图象。
我想将HIMAGELIST imglist的图标改为16*16的,原来是32*32,我该怎样做。
------解决方案--------------------
有个玩意儿叫MSDN的:
Image List Reference
Functions
ImageList_Add
Adds an image or images to an image list.
ImageList_AddMasked
Adds an image or images to an image list, generating a mask from the specified bitmap.
ImageList_BeginDrag
Begins dragging an image.
ImageList_Copy
Copies images within a given image list.
ImageList_Create
Creates a new image list.
ImageList_Destroy
Destroys an image list.
ImageList_DragEnter
Locks updates to the specified window during a drag operation and displays the drag image at the specified position within the window.
ImageList_DragLeave
Unlocks the specified window and hides the drag image, allowing the window to be updated.
ImageList_DragMove
Moves the image that is being dragged during a drag-and-drop operation. This function is typically called in response to a WM_MOUSEMOVE message.
ImageList_DragShowNolock
Shows or hides the image being dragged.
ImageList_Draw
Draws an image list item in the specified device context.
ImageList_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.
ImageList_DrawIndirect
Draws an image list image based on an IMAGELISTDRAWPARAMS structure.
ImageList_Duplicate
Creates a duplicate of an existing image list.
ImageList_EndDrag
Ends a drag operation.
ImageList_GetBkColor
Retrieves the current background color for an image list.
ImageList_GetDragImage
Retrieves the temporary image list that is used for the drag image. The function also retrieves the current drag position and the offset of the drag image relative to the drag position.
ImageList_GetIcon
Creates an icon from an image and mask in an image list.
ImageList_GetIconSize
Retrieves the dimensions of images in an image list. All images in an image list have the same dimensions.
ImageList_GetImageCount
Retrieves the number of images in an image list.
ImageList_GetImageInfo
Retrieves information about an image.
ImageList_LoadImage
Creates an image list from the specified bitmap, cursor, or icon resource.
ImageList_Merge
Creates a new image by combining two existing images. The function also creates a new image list in which to store the image.
ImageList_Read
Reads an image list from a stream.
ImageList_ReadEx
Reads an image list from a stream, and returns an interface to the image list.
ImageList_Remove
Removes an image from an image list.
ImageList_Replace
Replaces an image in an image list with a new image.
ImageList_ReplaceIcon
Replaces an image with an icon or cursor.
ImageList_SetBkColor
Sets the background color for an image list. This function only works if you add an icon or use ImageList_AddMasked with a black and white bitmap. Without a mask, the entire image is drawn; hence the background color is not visible.
ImageList_SetDragCursorImage
Creates a new drag image by combining the specified image (typically a mouse cursor image) with the current drag image.
ImageList_SetIconSize
Sets the dimensions of images in an image list and removes all images from the list.
ImageList_SetImageCount
Resizes an existing image list.
请教:HIMAGELIST的基本操作,如取图象,添加图象,更改图象。
我想将HIMAGELIST imglist的图标改为16*16的,原来是32*32,我该怎样做。
------解决方案--------------------
有个玩意儿叫MSDN的:
Image List Reference
Functions
ImageList_Add
Adds an image or images to an image list.
ImageList_AddMasked
Adds an image or images to an image list, generating a mask from the specified bitmap.
ImageList_BeginDrag
Begins dragging an image.
ImageList_Copy
Copies images within a given image list.
ImageList_Create
Creates a new image list.
ImageList_Destroy
Destroys an image list.
ImageList_DragEnter
Locks updates to the specified window during a drag operation and displays the drag image at the specified position within the window.
ImageList_DragLeave
Unlocks the specified window and hides the drag image, allowing the window to be updated.
ImageList_DragMove
Moves the image that is being dragged during a drag-and-drop operation. This function is typically called in response to a WM_MOUSEMOVE message.
ImageList_DragShowNolock
Shows or hides the image being dragged.
ImageList_Draw
Draws an image list item in the specified device context.
ImageList_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.
ImageList_DrawIndirect
Draws an image list image based on an IMAGELISTDRAWPARAMS structure.
ImageList_Duplicate
Creates a duplicate of an existing image list.
ImageList_EndDrag
Ends a drag operation.
ImageList_GetBkColor
Retrieves the current background color for an image list.
ImageList_GetDragImage
Retrieves the temporary image list that is used for the drag image. The function also retrieves the current drag position and the offset of the drag image relative to the drag position.
ImageList_GetIcon
Creates an icon from an image and mask in an image list.
ImageList_GetIconSize
Retrieves the dimensions of images in an image list. All images in an image list have the same dimensions.
ImageList_GetImageCount
Retrieves the number of images in an image list.
ImageList_GetImageInfo
Retrieves information about an image.
ImageList_LoadImage
Creates an image list from the specified bitmap, cursor, or icon resource.
ImageList_Merge
Creates a new image by combining two existing images. The function also creates a new image list in which to store the image.
ImageList_Read
Reads an image list from a stream.
ImageList_ReadEx
Reads an image list from a stream, and returns an interface to the image list.
ImageList_Remove
Removes an image from an image list.
ImageList_Replace
Replaces an image in an image list with a new image.
ImageList_ReplaceIcon
Replaces an image with an icon or cursor.
ImageList_SetBkColor
Sets the background color for an image list. This function only works if you add an icon or use ImageList_AddMasked with a black and white bitmap. Without a mask, the entire image is drawn; hence the background color is not visible.
ImageList_SetDragCursorImage
Creates a new drag image by combining the specified image (typically a mouse cursor image) with the current drag image.
ImageList_SetIconSize
Sets the dimensions of images in an image list and removes all images from the list.
ImageList_SetImageCount
Resizes an existing image list.