CWnd::OnAmbientProperty

This method is called by the framework to obtain ambient property values from a window that contains ActiveX controls. Override this method to alter the default ambient property values returned by an ActiveX control container to its controls. Any ambient property requests not handled by an overriding method should be forwarded to the base class implementation.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

BOOL OnAmbientProperty( COleControlSite* pSite, DISPID dispid, VARIANT* pvar )