Share via


CComControlBase::GetAmbientFontDisp

Retrieves a pointer to the container's ambient IFontDisp dispatch interface.

HRESULT GetAmbientFontDisp( 
   IFontDisp** ppFont  
);

Parameters

  • ppFont
    A pointer to the container's ambient IFontDisp dispatch interface.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

If the property is NULL, the pointer is NULL. If the pointer is not NULL, the caller must release the pointer.

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class