static CCmdTarget* FromIDispatch( LPDISPATCH lpDispatch );
Return Value
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.
Parameters
lpDispatch
A pointer to an IDispatch object.
Remarks
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.
The result of this function is the inverse of a call to the member function GetIDispatch.
CCmdTarget Overview | Class Members | Hierarchy Chart
See Also CCmdTarget::GetIDispatch, COleDispatchDriver