Compartilhar via


CMFCButton::SetStdImage

Uses a CMenuImages object to set the button image.

void SetStdImage(
   CMenuImages::IMAGES_IDS id,
   CMenuImages::IMAGE_STATE state=CMenuImages::ImageBlack,
   CMenuImages::IMAGES_IDS idDisabled=(CMenuImages::IMAGES_IDS)0 
);

Parameters

  • [in] id
    One of the button image identifiers that is defined in the CMenuImage::IMAGES_IDS enumeration. The image values specify images such as arrows, pins, and radio buttons.

  • [in] state
    One of the button image state identifiers that is defined in the CMenuImages::IMAGE_STATE enumeration. The image states specify button colors such as black, gray, light gray, white, and dark gray. The default value is CMenuImages::ImageBlack.

  • [in] idDisabled
    One of the button image identifiers that is defined in the CMenuImage::IMAGES_IDS enumeration. The image indicates that the button is disabled. The default value is the first button image (CMenuImages::IdArrowDown).

Requirements

Header: afxbutton.h

See Also

Reference

CMFCButton Class

Hierarchy Chart

Other Resources

CMenuImages Class