Mfc Eight_Bit

Mfc Eight_Bit




πŸ›‘ ALL INFORMATION CLICK HERE πŸ‘ˆπŸ»πŸ‘ˆπŸ»πŸ‘ˆπŸ»

































Mfc Eight_Bit




Table of contents



Exit focus mode





















Light



















Dark



















High contrast























Light



















Dark



















High contrast




This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Provides the functionality of the Windows common image list control.
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 .
Call this function to add one or more images or an icon to an image list.
pbmImage
Pointer to the bitmap containing the image or images. The number of images is inferred from the width of the bitmap.
pbmMask
Pointer to the bitmap containing the mask. If no mask is used with the image list, this parameter is ignored.
crMask
Color used to generate the mask. Each pixel of this color in the given bitmap is changed to black and the corresponding bit in the mask is set to one.
hIcon
Handle of the icon that contains the bitmap and mask for the new image.
Zero-based index of the first new image if successful; otherwise - 1.
You are responsible for releasing the icon handle when you are done with it.
Call this function to attach an image list to a CImageList object.
hImageList
A handle to an image list object.
Nonzero if the attachment was successful; otherwise 0.
Call this function to begin dragging an image.
nImage
Zero-based index of the image to drag.
ptHotSpot
Coordinates of the starting drag position (typically, the cursor position). The coordinates are relative to the upper left corner of the image.
Nonzero if successful; otherwise 0.
This function creates a temporary image list that is used for dragging. The image combines the specified image and its mask with the current cursor. In response to subsequent WM_MOUSEMOVE messages, you can move the drag image by using the DragMove member function. To end the drag operation, you can use the EndDrag member function.
This member function implements the behavior of the Win32 function ImageList_Copy , as described in the Windows SDK.
iDst
The zero-based index of the image to be used as the destination of the copy operation.
iSrc
The zero-based index of the image to be used as the source of the copy operation.
uFlags
The bit flag value that specifies the type of copy operation to be made. This parameter can be one of the following values:
pSrc
A pointer to a CImageList object that is the target of the copy operation.
Nonzero if successful; otherwise zero.
Initializes an image list and attaches it to a CImageList object.
cx
Dimensions of each image, in pixels.
cy
Dimensions of each image, in pixels.
nFlags
Specifies the type of image list to create. This parameter can be a combination of the following values, but it can include only one of the ILC_COLOR values.
nInitial
Number of images that the image list initially contains.
nGrow
Number of images by which the image list can grow when the system needs to resize the list to make room for new images. This parameter represents the number of new images the resized image list can contain.
nBitmapID
Resource IDs of the bitmap to be associated with the image list.
crMask
Color used to generate a mask. Each pixel of this color in the specified bitmap is changed to black, and the corresponding bit in the mask is set to one.
lpszBitmapID
A string containing the resource IDs of the images.
imagelist1
A reference to a CImageList object.
nImage1
Index of the first existing image.
imagelist2
A reference to a CImageList object.
nImage2
Index of the second existing image.
dx
Offset of the x-axis of the second image in relationship to the first image, in pixels.
dy
Offset of the y-axis of the second image in relationship to the first image, in pixels.
pImageList
A pointer to a CImageList object.
Nonzero if successful; otherwise 0.
You construct a CImageList in two steps. First, call the constructor and then call Create , which creates the image list and attaches it to the CImageList object.
Call this function to delete an image list.
Nonzero if successful; otherwise 0.
Called automatically by the CWinApp idle-time handler, DeleteTempMap deletes any temporary CImageList objects created by FromHandle , but does not destroy any handles ( hImageList ) temporarily associated with the ImageList objects.
Call this function to detach an image list object from a CImageList object.
This function returns a handle to the image list object.
See the example for CImageList::Attach .
During a drag operation, locks updates to the window specified by pWndLock and displays the drag image at the position specified by point .
pWndLock
Pointer to the window that owns the drag image.
point
Position at which to display the drag image. Coordinates are relative to the upper left corner of the window (not the client area).
Nonzero if successful; otherwise 0.
The coordinates are relative to the window's upper left corner, so you must compensate for the widths of window elements, such as the border, title bar, and menu bar, when specifying the coordinates.
If pWndLock is NULL , this function draws the image in the display context associated with the desktop window, and coordinates are relative to the upper left corner of the screen.
This function locks all other updates to the given window during the drag operation. If you need to do any drawing during a drag operation, such as highlighting the target of a drag-and-drop operation, you can temporarily hide the dragged image by using the CImageList::DragLeave function.
See the example for CImageList::BeginDrag .
Unlocks the window specified by pWndLock and hides the drag image, allowing the window to be updated.
pWndLock
Pointer to the window that owns the drag image.
Nonzero if successful; otherwise 0.
See the example for CImageList::EndDrag .
Call this function to move the image that is being dragged during a drag-and-drop operation.
Nonzero if successful; otherwise 0.
This function is typically called in response to a WM_MOUSEMOVE message. To begin a drag operation, use the BeginDrag member function.
Shows or hides the drag image during a drag operation, without locking the window.
bShow
Specifies whether the drag image is to be shown.
Nonzero if successful; otherwise 0.
The CImageList::DragEnter function locks all updates to the window during a drag operation. This function, however, does not lock the window.
Call this function to draw the image that is being dragged during a drag-and-drop operation.
pDC
Pointer to the destination device context.
nImage
Zero-based index of the image to draw.
pt
Location at which to draw within the specified device context.
nStyle
Flag specifying the drawing style. It can be one or more of these values:
Nonzero if successful; otherwise 0.
Draws an image list item in the specified device context.
pDC
Pointer to the destination device context.
nImage
Zero-based index of the image to draw.
pt
Location at which to draw within the specified device context.
sz
Size of the portion of the image to draw relative to the upper-left corner of the image. See dx and dy in ImageList_DrawEx in the Windows SDK.
clrBk
Background color of the image. See rgbBk in ImageList_DrawEx in the Windows SDK.
clrFg
Foreground color of the image. See rgbFg in ImageList_DrawEx in the Windows SDK.
nStyle
Flag specifying the drawing style. See fStyle in ImageList_DrawEx in the Windows SDK.
Nonzero if successful; otherwise 0.
The function uses the specified drawing style and blends the image with the specified color.
Call this member function to draw an image from an image list.
pimldp
A pointer to an IMAGELISTDRAWPARAMS structure that contains information about the draw operation.
pDC
A pointer to the destination device context. You must delete this CDC object when you are done with it.
nImage
The zero-based index of the image to be drawn.
pt
A POINT structure containing the x- and y- coordinates where the image will be drawn.
sz
A SIZE structure indicating the size of the image to be drawn.
ptOrigin
A POINT structure containing the x- and y-coordinates specifying the upper left corner of the drawing operation with respect to the image itself. Pixels of the image that are to the left of the x-coordinate and above the y-coordinate are not drawn.
fStyle
Flag specifying the drawing style and, optionally, the overlay image. See the Remarks section for information on the overlay image. The MFC default implementation, ILD_NORMAL , draws the image using the background color for the image list. If the background color is the CLR_NONE value, the image is drawn transparently using a mask.
Other possible styles are described under the fStyle member of the IMAGELISTDRAWPARAMS structure.
dwRop
Value specifying a raster-operation code. These codes define how the color data for the source rectangle will be combined with the color data for the destination rectangle to achieve the final color. MFC's default implementation, SRCCOPY , copies the source rectangle directly to the destination rectangle. This parameter is ignored if the fStyle parameter does not include the ILD_ROP flag.
Other possible values are described under the dwRop member of the IMAGELISTDRAWPARAMS structure.
rgbBack
The image background color, by default CLR_DEFAULT . This parameter can be an application-defined RGB value or one of the following values:
rgbFore
Image foreground color, by default CLR_DEFAULT . This parameter can be an application-defined RGB value or one of the following values:
This parameter is used only if fStyle includes the ILD_BLEND25 or ILD_BLEND50 flag.
fState
Flag specifying the drawing state. This member can contain one or more image list state flags.
Frame
Affects the behavior of saturate and alpha-blending effects.
When used with ILS_SATURATE , this member holds the value that is added to each color component of the RGB triplet for each pixel in the icon.
When used with ILS_APLHA , this member holds the value for the alpha channel. This value can be from 0 to 255, with 0 being completely transparent, and 255 being completely opaque.
crEffect
A COLORREF value used for glow and shadow effects.
TRUE if the image is successfully drawn; otherwise FALSE .
Use the first version if you want to fill the Win32 structure yourself. Use the second version if you want to take advantage of one or more of MFC's default arguments, or avoid managing the structure.
An overlay image is an image that is drawn on top of the primary image, specified in this member function by the nImage parameter. Draw an overlay mask by using the Draw member function with the one-based index of the overlay mask specified by using the INDEXTOOVERLAYMASK macro.
Call this function to end a drag operation.
To begin a drag operation, use the BeginDrag member function.
Call this function to create an icon based on an image and its related mask in an image list.
nImage
Zero-based index of the image.
Handle of the icon if successful; otherwise NULL .
This method relies on the behavior of the ImageList_ExtractIcon macro to create the icon. Refer to the ImageList_ExtractIcon macro for more information on icon creation and cleanup.
Returns a pointer to a CImageList object when given a handle to an image list.
hImageList
Specifies the image list.
A pointer to a CImageList object if successful; otherwise NULL .
If a CImageList is not already attached to the handle, a temporary CImageList object is created and attached. This temporary CImageList object is valid only until the next time the application has idle time in its event loop, at which time all temporary objects are deleted.
Returns a pointer to a CImageList object when given a handle to an image list.
hImageList
Specifies the image list.
A pointer to a CImageList object if successful; otherwise NULL .
If a CImageList object is not attached to the handle, NULL is returned.
Call this function to retrieve the current background color for an image list.
The RGB color value of the CImageList object background color.
See the example for CImageList::SetBkColor .
Gets the temporary image list that is used for dragging.
lpPoint
Address of a POINT structure that receives the current drag position.
lpPointHotSpot
Address of a POINT structure that receives the offset of the drag image relative to the drag position.
If successful, a pointer to the temporary image list that is used for dragging; otherwise, NULL .
Call this function to retrieve the number of images in an image list.
See the example for CImageList::ExtractIcon .
Call this function to retrieve information about an image.
nImage
Zero-based index of the image.
pImageInfo
Pointer to an IMAGEINFO structure that receives information about the image. The information in this structure can be used to directly manipulate the bitmaps for the image.
Nonzero if successful; otherwise 0.
The IMAGEINFO structure contains information about an image in an image list.
Call this function to retrieve the m_hImageList data member.
A handle to the attached image list; otherwise NULL if no object is attached.
A handle of the image list attached to this object.
The m_hImageList data member is a public variable of type HIMAGELIST .
Use this operator to get the attached handle of the CImageList object.
If successful, a handle to the image list represented by the CImageList object; otherwise NULL .
This operator is a casting operator, which supports direct use of an HIMAGELIST object.
Call this function to read an image list from an archive.
pArchive
A pointer to a CArchive object from which the image list is to be read.
Nonzero if successful; otherwise 0.
Call this function to remove an image from an image list object.
nImage
Zero-based index of the image to remove.
Nonzero if successful; otherwise 0.
All items following nImage now move down one position. For example, if an image list contains two items, deleting the first item will cause the remaining item to now be in the first position. nImage =0 for the item in the first position.
Call this function to replace an image in an image list with a new image.
nImage
Zero-based index of the image to replace.
pbmImage
A pointer to the bitmap containing the image.
pbmMask
A pointer to the bitmap containing the mask. If no mask is used with the image list, this parameter is ignored.
hIcon
A handle to the icon that contains the bitmap and mask for the new image.
The version returning BOOL returns nonzero if successful; otherwise 0.
The version returning int returns the zero-based index of the image if successful; otherwise - 1.
Call this member function after calling SetImageCount to assign the new, valid images to the placeholder image index numbers.
Call this function to set the background color for an image list.
cr
Background color to set. It can be CLR_NONE . In that case, images are drawn transparently using the mask.
The previous background color if successful; otherwise CLR_NONE .
Creates a new drag image by combining the given image (typically a mouse cursor image) with the current drag image.
nDrag
Index of the new image to be combined with the drag image.
ptHotSpot
Position of the hot spot within the new image.
Nonzero if successful; otherwise 0.
Because the dragging functions use the new image during a drag operation, you should use the Windows ShowCursor function to hide the actual mouse cursor after calling CImageList::SetDragCursorImage . Otherwise, the system may appear to have two mouse cursors for the duration of the drag operation.
Call this member function to reset the number of images in a CImageList object.
uNewCount
The value specifying the new total number of images in the image list.
Nonzero if successful; otherwise zero.
If you call this member function to increase the number of images in the image list, then call Replace for each additional image to assign the new indexes to valid images. If you fail to assign the indexes to valid images, draw operations that create the new images will be unpredictable.
If you decrease the size of an image list by using this function, the truncated images are freed.
Call this function to add the zero-based index of an image to the list of images to be used as overlay masks.
nImage
Zero-based index of the image to use as an overlay mask.
nOverlay
One-based index of the overlay mask.
Nonzero if successful; otherwise 0.
Up to four indices can be added to the list.
An overlay mask is an image drawn transparently over another image. Draw an overlay mask over an image by using the CImageList::Draw member function with the one-based index of the overlay mask specified by using the INDEXTOOVERLAYMASK macro.
Call this function to write an image list object to an archive.
pArchive
A pointer to a CArchive object in which the image list is to be stored.
Nonzero if successful; otherwise 0.
Adds an image or images to an image list.
Attaches an image list to a CImageList object.
Copies an image within a CImageList object.
Initializes an image list and attaches it to a CImageList object.
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-dr
Issa_Linda Mfc
Pokemon Elesa Hentai
Newbienudes

Report Page