Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
TRY
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CONNECTION_PART

Maps a connection point for your OLE control to a specific interface ID.

CONNECTION_PART(theClass, iid, localClass )

theClass

Specifies the name of the control class whose connection point this is.

iid

The interface ID of the interface called by the connection point.

localClass

Specifies the name of the local class that implements the connection point.

For example:

BEGIN_CONNECTION_MAP(CMyClass, CCmdTarget)
    CONNECTION_PART(CMyClass, IID_ISampleSink, SampleConnPt)
END_CONNECTION_MAP()

implements a connection map, with a connection point, that calls the IID_ISinkInterface interface .

Header: afxdisp.h

Community Additions

ADD
Show:
© 2015 Microsoft