共用方式為


CMFCVisualManager::SetFadeInactiveImage

Enables or disables the lighting effect for inactive images on a menu or toolbar.

void SetFadeInactiveImage(
   BOOL bFade = TRUE
);

Parameters

  • [in] bFade
    A Boolean parameter that specifies whether to enable the lighting effect.

Remarks

This feature controls whether inactive images appear faded on a menu or toolbar. Use the method CMFCVisualManager::IsFadeInactiveImage to determine whether this feature is enabled.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCVisualManager::IsFadeInactiveImage