Receiving ONDRAG events
- From: "krithika" <shyam.ramesh@xxxxxxxxx>
- Date: 14 Nov 2006 22:25:35 -0800
Hi,
Iam try to record ondrag events by advising IHTMLDocuments2 events.My
onmouseup/down,click methods are all getting invoked.But none of drag
events get notified to my document.
DISP_FUNCTION_ID(CHTMLDocument2,"OnDragStart",DISPID_HTMLELEMENTEVENTS_ONDRAGSTART,OnDragStart,VT_EMPTY,VTS_DISPATCH)
DISP_FUNCTION_ID(CHTMLDocument2, "OnDragEnd",
DISPID_HTMLELEMENTEVENTS_ONDRAGEND , OnDragEnd, VT_EMPTY ,
VTS_DISPATCH)
I have used BOOL bConnected = AfxConnectionAdvise(m_pHTMLDocument,
DIID_HTMLDocumentEvents2, this->GetIDispatch(TRUE), TRUE, &m_dwCookie);
to sink events.
What Iam my missing.Please help.
regards,
Krithika
.
- Prev by Date: Re: How to change User Agent string frequently?
- Next by Date: Re: HTMLElementEvent2::OnPropertyChange question
- Previous by thread: HTMLElementEvent2::OnPropertyChange question
- Next by thread: Re: Clear current navigation history
- Index(es):