COleControl::AmbientFont

Returns the value of the ambient Font property.

LPFONTDISP AmbientFont( );

Return Value

A pointer to the container's ambient Font dispatch interface. The default value is NULL. If the return is not equal to NULL, you are responsible for releasing the font by calling its IUnknown::Release member function.

Remarks

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

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::GetFont

COleControl::SetFont

Other Resources

COleControl Members