共用方式為


CConnectionPoint::OnAdvise

Called by the framework when a connection is being established or broken.

virtual void OnAdvise(
   BOOL bAdvise 
);

Parameters

  • bAdvise
    TRUE, if a connection is being established; otherwise FALSE.

Remarks

The default implementation does nothing.

Override this function if you want notification when sinks connect to or disconnect from your connection point.

Requirements

Header: afxdisp.h

See Also

Concepts

CConnectionPoint Class

CConnectionPoint Members

Hierarchy Chart