Share via


CMenuImages::Draw

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Renders one of the images specified by the IMAGES_IDS enumerator.

static void Draw(
   CDC* pDC,
   CMenuImages::IMAGES_IDS id,
   const CPoint& ptImage,
   CMenuImages::IMAGE_STATE state = CMenuImages::ImageBlack,
   const CSize& sizeImage = CSize(0, 0) 
);

static void Draw(
   CDC* pDC,
   CMenuImages::IMAGES_IDS id,
   const CRect& rectImage,
   CMenuImages::IMAGE_STATE state = CMenuImages::ImageBlack,
   const CSize& sizeImage = CSize(0, 0) 
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] id
    An image ID that indicates which image to display.

  • [in] ptImage
    A CPoint parameter that indicates the location of the image.

  • [in] rectImage
    A CRect parameter that specifies the location of the image.

  • [in] state
    An enumerated data type that specifies the state of the image.

  • [in] sizeImage
    The size of the image.

Remarks

The images indicated by the IMAGES_IDS enumerator represent various standard GUI elements, such as arrows, check symbols, and close buttons.

The rectImage parameter indicates only the location of the image. The size of the rectangle is not important - it will not change the size of the rendered image. Draw displays the image in the center of rectImage.

This method calls CMFCToolBarImages::Draw to display the images.

Requirements

Header: afxmenuimages.h

See Also

Reference

CMenuImages Class

CMFCToolBarImages::Draw

Other Resources

MFC Hierarchy Chart