Поделиться через


CCmdTarget::FromIDispatch

Call this function to map an IDispatch pointer, received from automation member functions of a class, into the CCmdTarget object that implements the interfaces of the IDispatch object.

static CCmdTarget* PASCAL FromIDispatch(
   LPDISPATCH lpDispatch 
);

Параметры

  • lpDispatch
    A pointer to an IDispatch object.

Возвращаемое значение

A pointer to the CCmdTarget object associated with lpDispatch. This function returns NULL if the IDispatch object is not recognized as a Microsoft Foundation Class IDispatch object.

Заметки

The result of this function is the inverse of a call to the member function GetIDispatch.

Требования

Header: afxwin.h

См. также

Основные понятия

CCmdTarget Class

CCmdTarget Members

Hierarchy Chart

CCmdTarget::GetIDispatch

COleDispatchDriver Class