共用方式為


BEGIN_CONNECTION_PART

Use the BEGIN_CONNECTION_PART macro to begin the definition of additional connection points beyond the event and property notification connection points.

BEGIN_CONNECTION_PART(theClass, localClass )

Parameters

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

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

Remarks

In the declaration (.h) file that defines the member functions for your class, start the connection point with the BEGIN_CONNECTION_PART macro, then add the CONNECTION_IID macro and any other member functions you wish to implement, and complete the connection point map with the END_CONNECTION_PART macro.

Requirements

Header: afxdisp.h

See Also

Reference

BEGIN_CONNECTION_MAP

END_CONNECTION_PART

DECLARE_CONNECTION_MAP

Concepts

MFC Macros and Globals