共用方式為


CMFCToolBar::GetGrayDisabledButtons

Specifies whether the images of disabled buttons are dimmed versions of the regular button images, or taken from the collection of disabled button images.

BOOL GetGrayDisabledButtons() const;

Return Value

TRUE to dim the images of disabled buttons; FALSEto obtain images from the collection of disabled images.

Remarks

Use CMFCToolBar::SetGrayDisabledButtons to switch between dimmed images and the images from the collection of disabled images.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart