// Get the array of IDispatch pointers that is stored in the property page.
LPDISPATCH FAR *m_lpDispatch = GetObjectArray(&Ulong);
// Get the CCmdTarget object that is associated with any one of the previous
// array elements.
pMyCtrl = (CGT_ViewCtrl*) CCmdTarget::FromIDispatch(m_lpDispatch[0]);