Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Reference
Libraries Reference
ATL
Macros
 SINK_ENTRY_EX

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
ATL Library Reference 
SINK_ENTRY_EX 

Declares the handler function (fn) for the specified event (dispid), of the dispatch interface (iid), for the control identified by id.

SINK_ENTRY_EX( 
      id, 
      iid, 
      dispid, 
      fn  
)

Parameters

id

[in] Identifies the control.

iid

[in] Identifies the dispatch interface.

dispid

[in] Identifies the specified event.

fn

[in] Name of the event handler function. This function must use the _stdcall calling convention and have the appropriate dispinterface-style signature.

BEGIN_SINK_MAP(CMyObj)
   SINK_ENTRY_EX(IDC_CIRCCTL1, CIRCLib::DIID__CircEvents, DISPID_CLICK,
      OnClick_CircCtrl1)
   SINK_ENTRY_EX(IDC_CIRCCTL2, CIRCLib::DIID__CircEvents, DISPID_CLICK,
      OnClick_CircCtrl2)
END_SINK_MAP()

CE ATL implementation of ActiveX event sinks only supports return values of type HRESULT or void from your event handler methods; any other return value is unsupported and its behavior is undefined.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker