IAxWinAmbientDispatch Interface
This interface provides methods for specifying characteristics of the hosted control or container.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
interface IAxWinAmbientDispatch : IDispatch
Members
Methods
The AllowContextMenu property specifies whether the hosted control is allowed to display its own context menu. |
|
The AllowShowUI property specifies whether the hosted control is allowed to display its own user interface. |
|
The AllowWindowlessActivation property specifies whether the container will allow windowless activation. |
|
The BackColor property specifies the ambient background color of the container. |
|
DisplayAsDefault is an ambient property that allows a control to find out if it is the default control. |
|
The DocHostDoubleClickFlags property specifies the operation that should take place in response to a double-click. |
|
The DocHostFlags property specifies the user interface capabilities of the host object. |
|
The Font property specifies the ambient font of the container. |
|
The ForeColor property specifies the ambient foreground color of the container. |
|
The LocaleID property specifies the ambient locale ID of the container. |
|
The MessageReflect ambient property specifies whether the container will reflect messages to the hosted control. |
|
The OptionKeyPath property specifies the registry key path to user settings. |
|
The ShowGrabHandles ambient property allows the control to find out if it should draw itself with grab handles. |
|
The ShowHatching ambient property allows the control to find out if it should draw itself hatched. |
|
The UserMode property specifies the ambient user mode of the container. |
|
The AllowContextMenu property specifies whether the hosted control is allowed to display its own context menu. |
|
The AllowShowUI property specifies whether the hosted control is allowed to display its own user interface. |
|
The AllowWindowlessActivation property specifies whether the container will allow windowless activation. |
|
The BackColor property specifies the ambient background color of the container. |
|
DisplayAsDefault is an ambient property that allows a control to find out if it is the default control. |
|
The DocHostDoubleClickFlags property specifies the operation that should take place in response to a double-click. |
|
The DocHostFlags property specifies the user interface capabilities of the host object. |
|
The Font property specifies the ambient font of the container. |
|
The ForeColor property specifies the ambient foreground color of the container. |
|
The LocaleID property specifies the ambient locale ID of the container. |
|
The MessageReflect ambient property specifies whether the container will reflect messages to the hosted control. |
|
The OptionKeyPath property specifies the registry key path to user settings. |
|
The UserMode property specifies the ambient user mode of the container. |
Remarks
This interface is exposed by ATL's ActiveX control hosting objects. Call the methods on this interface to set the ambient properties available to the hosted control or to specify other aspects of the container's behavior. To supplement the properties provided by IAxWinAmbientDispatch, use IAxWinAmbientDispatchEx.
AXHost will try to load type information about IAxWinAmbientDispatch and IAxWinAmbientDispatchEx from the typelib that contains the code.
If you are linking to ATL90.dll, AXHost will load the type information from the typelib in the DLL.
See Hosting ActiveX Controls Using ATL AXHost for more details.
Requirements
The definition of this interface is available in a number of forms, as shown in the table below.
Definition Type |
File |
---|---|
IDL |
atliface.idl |
Type Library |
ATL.dll |
C++ |
atliface.h (also included in ATLBase.h) |