Share via


CMenuImages::SetColor

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

Sets the color for a set of toolbar images.

static void __stdcall SetColor(
   CMenuImages::IMAGE_STATE state,
   COLORREF color
);

Parameters

Parameter

Description

[in] state

An enumerated data type that indicates which set of images to modify. 

[in] color

The new color for the images.

Remarks

This method alters the button color for each image described by the enumerated data type IMAGE_IDS.

The possible values for the state parameter are defined in the header file for the CMenuImages Class and are listed here.

  • ImageBlack

  • ImageGray

  • ImageLtGray

  • ImageWhite

  • ImageDkGray

  • ImageBlack2

Requirements

Header: afxmenuimages.h

See Also

Reference

CMenuImages Class

Other Resources

MFC Hierarchy Chart