CConnectionPoint::GetNextConnection

检索指向连接组件在 pos。

LPUNKNOWN GetNextConnection(
   POSITION& pos
) const;

参数

  • pos
    指定对以前 GetNextConnection 返回的 POSITION 值或 GetStartPosition 调用。

返回值

为 pos指定的连接组件的指针或NULL。

备注

此功能用于重复最有用通过所有元素都连接映射。如果反复时,请跳过从该函数返回所有NULLs。

示例

void CMyClass::CallSinkFunc()
{
    POSITION pos = m_xSampleConnPt.GetStartPosition();
    ISampleSink* pSampleSink;
    while( pos != NULL )
    {
        pSampleSink = (ISampleSink*)(m_xSampleConnPt.GetNextConnection(pos));
        if(pSampleSink != NULL)
            pSampleSink->SinkFunc();
    }
}

要求

Header: afxdisp.h

请参见

参考

CConnectionPoint选件类

层次结构图