Share via


CComControlBase::GetAmbientForeColor

Retrieves DISPID_AMBIENT_FORECOLOR, the ambient foreground color for all controls, defined by the container.

HRESULT GetAmbientForeColor( 
   OLE_COLOR& ForeColor  
);

Parameters

  • ForeColor
    The property DISPID_AMBIENT_FORECOLOR.

Return Value

One of the standard HRESULT values.

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class