MFC
Expand Minimize
This topic has not yet been rated - Rate this topic

COleControl::IsInvokeAllowed

Enables automation method invocation.

BOOL IsInvokeAllowed( 
   DISPID dispid  
);

Nonzero if the control has been initialized; otherwise 0.

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 http://support.microsoft.com.

Header: afxctl.h

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.