COleControl::IsInvokeAllowed

 

Enables automation method invocation.

Syntax

      BOOL IsInvokeAllowed(
   DISPID dispid 
);

Return Value

Nonzero if the control has been initialized; otherwise 0.

Remarks

The framework's implementation of IDispatch::Invoke calls IsInvokeAllowed to determine if a given function (identified by dispid) may be invoked. The default behavior for an OLE control is to allow automation methods to be invoked only if the control has been initialized; however, IsInvokeAllowed is a virtual function and may be overridden if necessary (for example, when the control is being used as an automation server). For more information, see Knowledge Base article Q166472, "HOWTO: Use an OLE Control as an Automation Server." Knowledge Base articles are available in the MSDN Library Visual Studio documentation or at https://support.microsoft.com.

Requirements

Header: afxctl.h

See Also

COleControl Class
Hierarchy Chart
CCmdTarget::IsInvokeAllowed