CCmdTarget::FromIDispatch

This method maps an IDispatch pointer, received from Automation methods of a class, into the CCmdTarget object that implements the interfaces of the IDispatch object.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

static CCmdTarget* FromIDispatch( LPDISPATCH lpDispatch );

See Also

CCmdTarget::GetIDispatch, COleDispatchDriver