Click here to Skip to main content
15,920,508 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Object properties - control embedded in web page Pin
AssemblySoft17-Mar-09 4:12
AssemblySoft17-Mar-09 4:12 
GeneralRe: Object properties - control embedded in web page Pin
«_Superman_»17-Mar-09 23:49
professional«_Superman_»17-Mar-09 23:49 
QuestionAdding to CFolderDialogImpl Pin
joboodi313-Mar-09 7:09
joboodi313-Mar-09 7:09 
AnswerRe: Adding to CFolderDialogImpl Pin
Stuart Dootson14-Mar-09 5:04
professionalStuart Dootson14-Mar-09 5:04 
Questionthe question that relate to CreateInstance Pin
weifirst12-Mar-09 21:03
weifirst12-Mar-09 21:03 
AnswerRe: the question that relate to CreateInstance Pin
Stuart Dootson12-Mar-09 22:12
professionalStuart Dootson12-Mar-09 22:12 
Generalthanks. this query is resolves. it is not relate com, it is other question. Pin
weifirst15-Mar-09 21:46
weifirst15-Mar-09 21:46 
QuestionDynamic UUID? Pin
lucyh3h12-Mar-09 7:37
lucyh3h12-Mar-09 7:37 
AnswerRe: Dynamic UUID? Pin
«_Superman_»12-Mar-09 19:56
professional«_Superman_»12-Mar-09 19:56 
QuestionEquivalent for CPtrList in ATL Pin
Elsie9-Mar-09 21:45
Elsie9-Mar-09 21:45 
AnswerRe: Equivalent for CPtrList in ATL Pin
Jonathan Davies10-Mar-09 0:21
Jonathan Davies10-Mar-09 0:21 
GeneralRe: Equivalent for CPtrList in ATL Pin
Elsie10-Mar-09 4:06
Elsie10-Mar-09 4:06 
GeneralRe: Equivalent for CPtrList in ATL Pin
Jonathan Davies10-Mar-09 4:22
Jonathan Davies10-Mar-09 4:22 
AnswerRe: Equivalent for CPtrList in ATL Pin
Stuart Dootson10-Mar-09 2:04
professionalStuart Dootson10-Mar-09 2:04 
AnswerCPtrList is not in c++, it is in vc++ Pin
weifirst12-Mar-09 21:42
weifirst12-Mar-09 21:42 
QuestionRegarding Adobe Acrobat Reader6.0 Add-in Pin
NATARAJAN VENKATARAMANI5-Mar-09 4:03
NATARAJAN VENKATARAMANI5-Mar-09 4:03 
QuestionHow can we create a dynamic button, label and a listview control on a window created in ATL/WTL ? Pin
Dharmendra Bhargava4-Mar-09 22:03
Dharmendra Bhargava4-Mar-09 22:03 
AnswerRe: How can we create a dynamic button, label and a listview control on a window created in ATL/WTL ? Pin
Jonathan Davies8-Mar-09 5:40
Jonathan Davies8-Mar-09 5:40 
GeneralRe: How can we create a dynamic button, label and a listview control on a window created in ATL/WTL ? Pin
Dharmendra Bhargava9-Mar-09 21:57
Dharmendra Bhargava9-Mar-09 21:57 
GeneralRe: How can we create a dynamic button, label and a listview control on a window created in ATL/WTL ? Pin
Jonathan Davies10-Mar-09 1:13
Jonathan Davies10-Mar-09 1:13 
Questionnon dialog object sink advise causing assert to be thrown during advise initialisation Pin
TClarke4-Mar-09 0:26
TClarke4-Mar-09 0:26 
AnswerRe: non dialog object sink advise causing assert to be thrown during advise initialisation Pin
Jonathan Davies6-Mar-09 1:01
Jonathan Davies6-Mar-09 1:01 
GeneralRe: non dialog object sink advise causing assert to be thrown during advise initialisation Pin
TClarke6-Mar-09 1:25
TClarke6-Mar-09 1:25 
GeneralRe: non dialog object sink advise causing assert to be thrown during advise initialisation Pin
Jonathan Davies6-Mar-09 2:16
Jonathan Davies6-Mar-09 2:16 
Looking at my ATL Internals (B.Rector & C.Sells) they say:

Easiest way...event sinks...derive ... from IDispEventImpl...

... when the event source is a contained control and the event recipient is a composite control, the identifier is the contained control's child window identifier.

When your class is a composite control, you should use the AtlAdviseSinkMap function to establish and remove connections...of the contained controls listed in the sink map...Using CWindow::GetDlgItem method, AtlAdviseSinkMap navigates to a child window handle...

When your class isn't a composite control you must explicitly call the DispEventAdvise method of each of your IDispEventSimpleImpl ... base classes to connect.

You seem to have the correct use of IDispEventImpl and IDispEventSimpleImpl. It also seems use of AtlAdviseSinkMap is out due to its requirement of "contained controls listed in the sink map" as one of your mapped controls isn't contained - as you say. So it seems you can't prevent AtlAdviseSinkMap calling GetDlgItem.

All it would seem you can do is not use AtlAdviseSinkMap but do it manually by using GetDlgItem etc on one and "explicitly call the DispEventAdvise" of the other (or both).
GeneralRe: non dialog object sink advise causing assert to be thrown during advise initialisation Pin
TClarke6-Mar-09 2:43
TClarke6-Mar-09 2:43 

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.