共用方式為


COleControl::AmbientBackColor

Returns the value of the ambient BackColor property.

OLE_COLOR AmbientBackColor( );

Return Value

The current value of the container's ambient BackColor property, if any. If the property is not supported, this function returns the system-defined Windows background color.

Remarks

The ambient BackColor property is available to all controls and is defined by the container. Note that the container is not required to support this property.

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::TranslateColor

COleControl::GetBackColor

COleControl::AmbientForeColor