Event Handling and ATL
This section shows how to sink events using ATL. It covers the principles of COM event handling and the specifics of sinking events using the support provided by ATL.
For information on how to fire events and implement connection points, read ATL Connection Points.
In This Section
Event Handling Principles
Discusses the steps common to all event handing.
Implementing the Event Handling Interface
Discusses the classes to use for implementing the event interface.
Using IDispEventImpl
Lists the steps for using IDispEventImpl
and shows a code sample.
Using IDispEventSimpleImpl
Lists the steps for using IDispEventSimpleImpl
and shows a code sample.
ATL Event Handling Summary
Summarizes, using tables, the main ways for implementing an event interface and for advising and unadvising the event source using ATL.
Related Sections
ATL
Provides links to conceptual topics on how to program using the Active Template Library.
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho