Click here to Skip to main content
15,921,793 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: boost and VS2005 Pin
Stuart Dootson22-Nov-05 20:26
professionalStuart Dootson22-Nov-05 20:26 
AnswerRe: boost and VS2005 Pin
Starick11-Dec-05 22:26
Starick11-Dec-05 22:26 
QuestionLink Error Pin
Cool Ju20-Nov-05 19:05
Cool Ju20-Nov-05 19:05 
AnswerLink Error - solved Pin
Cool Ju20-Nov-05 19:59
Cool Ju20-Nov-05 19:59 
QuestionCapturing Events Pin
Logan from Singapore20-Nov-05 15:39
Logan from Singapore20-Nov-05 15:39 
AnswerRe: Capturing Events Pin
qfegd22-Nov-05 8:16
qfegd22-Nov-05 8:16 
GeneralRe: Capturing Events Pin
Logan from Singapore22-Nov-05 14:18
Logan from Singapore22-Nov-05 14:18 
GeneralRe: Capturing Events Pin
Lim Bio Liong22-Nov-05 15:53
Lim Bio Liong22-Nov-05 15:53 
Hello w_logan,

What you want to develop is an "Event Sink". If you are using ATL, create a class that inherits from IDispEventImpl. You will also need to include the BEGIN_SINK_MAP(), SINK_ENTRY_EX() and END_SINK_MAP() macros. Of course, your class will have to implement the event function itself. The great thing about the sink map macros is that you choose only those events that you want to supply handlers for. You do not need to implement handlers for all the events.

An alternative to using the above-mentioned ATL constructs is to use my TEventHandler class. Please read my article :

"Understanding COM Event Handling" (http://www.codeproject.com/com/TEventHandler.asp[^])

- Bio.
GeneralRe: Capturing Events Pin
Logan from Singapore22-Nov-05 16:08
Logan from Singapore22-Nov-05 16:08 
GeneralRe: Capturing Events Pin
Lim Bio Liong22-Nov-05 16:21
Lim Bio Liong22-Nov-05 16:21 
GeneralRe: Capturing Events Pin
ThatsAlok4-Dec-05 21:32
ThatsAlok4-Dec-05 21:32 
GeneralRe: Capturing Events Pin
Lim Bio Liong5-Dec-05 2:48
Lim Bio Liong5-Dec-05 2:48 
GeneralRe: Capturing Events Pin
ThatsAlok5-Dec-05 21:31
ThatsAlok5-Dec-05 21:31 
QuestionException in ::ShowWindow/WM_SYNCPAINT handler when using WTL rebar Pin
kamrann20-Nov-05 8:53
kamrann20-Nov-05 8:53 
Questionunhandle exception(8000ffff) while acceing ocx methods Pin
Rajesh match18-Nov-05 21:10
Rajesh match18-Nov-05 21:10 
AnswerRe: unhandle exception(8000ffff) while acceing ocx methods Pin
Michael Dunn19-Nov-05 15:18
sitebuilderMichael Dunn19-Nov-05 15:18 
AnswerRe: unhandle exception(8000ffff) while acceing ocx methods Pin
JonEngle6-Dec-05 19:16
JonEngle6-Dec-05 19:16 
QuestionHow to access method of user define control from ATL Pin
rajesh_kapure16-Nov-05 3:54
rajesh_kapure16-Nov-05 3:54 
QuestionUsing ActiveX without container Pin
Ahsan Askare14-Nov-05 23:33
Ahsan Askare14-Nov-05 23:33 
QuestionHow do you know the duplicate key insertion in STL map Pin
sarath_babu13-Nov-05 20:23
sarath_babu13-Nov-05 20:23 
AnswerRe: How do you know the duplicate key insertion in STL map Pin
Jonas Larsson13-Nov-05 21:50
Jonas Larsson13-Nov-05 21:50 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
sarath_babu14-Nov-05 0:09
sarath_babu14-Nov-05 0:09 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Jonas Larsson14-Nov-05 1:50
Jonas Larsson14-Nov-05 1:50 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Stuart Dootson15-Nov-05 6:53
professionalStuart Dootson15-Nov-05 6:53 
GeneralRe: How do you know the duplicate key insertion in STL map Pin
Jörgen Sigvardsson15-Nov-05 9:59
Jörgen Sigvardsson15-Nov-05 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.