CCmdTarget::IsInvokeAllowed
This function is called by MFC's implementation of IDispatch::Invoke to determine if a given automation method (identified by dispid) can be invoked.
virtual BOOL IsInvokeAllowed(
DISPID dispid
);
Параметры
- dispid
A dispatch ID.
Возвращаемое значение
TRUE if the method can be invoked, otherwise FALSE.
Заметки
If IsInvokeAllowed returns TRUE, Invoke proceeds to call the method; otherwise, Invoke will fail, returning E_UNEXPECTED.
Derived classes can override this function to return appropriate values (if not overridden, IsInvokeAllowed returns TRUE). See in particular COleControl::IsInvokeAllowed.
Требования
Header: afxwin.h