Udostępnij za pośrednictwem


CMenuImages::SetColor

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

Concepts

MFC Hierarchy Chart

Reference

CMenuImages Class