Click here to Skip to main content
15,911,786 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Need Help on ATL Project Pin
manish.patel30-Mar-08 22:34
manish.patel30-Mar-08 22:34 
QuestionHow to use GDI+ in an ActiveX Control? [modified] Pin
samfromcn18-Mar-08 4:54
samfromcn18-Mar-08 4:54 
GeneralRe: How to use GDI+ in an ActiveX Control? Pin
samfromcn18-Mar-08 15:43
samfromcn18-Mar-08 15:43 
GeneralRe: How to use GDI+ in an ActiveX Control? Pin
Michael Dunn20-Mar-08 13:40
sitebuilderMichael Dunn20-Mar-08 13:40 
General'Server busy' problem Pin
KASR117-Mar-08 19:21
KASR117-Mar-08 19:21 
GeneralRe: 'Server busy' problem Pin
Ernest Laurentin20-Mar-08 6:06
Ernest Laurentin20-Mar-08 6:06 
QuestionWindows Services: User account management Pin
tony_Udz15-Mar-08 23:27
tony_Udz15-Mar-08 23:27 
GeneralRe: Windows Services: User account management Pin
led mike17-Mar-08 4:43
led mike17-Mar-08 4:43 
GeneralRe: Windows Services: User account management Pin
tony_Udz17-Mar-08 19:46
tony_Udz17-Mar-08 19:46 
GeneralRe: Windows Services: User account management Pin
led mike18-Mar-08 5:13
led mike18-Mar-08 5:13 
GeneralPlease help me [modified] Pin
Rahul Vaishnav7-Mar-08 22:45
Rahul Vaishnav7-Mar-08 22:45 
GeneralRe: Please help me Pin
Dr. Emmett Brown10-Mar-08 10:44
Dr. Emmett Brown10-Mar-08 10:44 
GeneralRe: Please help me Pin
Rahul Vaishnav10-Mar-08 18:36
Rahul Vaishnav10-Mar-08 18:36 
GeneralProblem in getting data from server Pin
MANISH RASTOGI7-Mar-08 18:28
MANISH RASTOGI7-Mar-08 18:28 
GeneralRe: Problem in getting data from server Pin
Ernest Laurentin10-Mar-08 4:47
Ernest Laurentin10-Mar-08 4:47 
GeneralRe: Problem in getting data from server Pin
MANISH RASTOGI11-Mar-08 21:06
MANISH RASTOGI11-Mar-08 21:06 
GeneralEvent Map of an ActiveX control Pin
AbbyIndian6-Mar-08 6:58
AbbyIndian6-Mar-08 6:58 
GeneralError while creating object using CreateInstance() Pin
KASR16-Mar-08 0:31
KASR16-Mar-08 0:31 
GeneralRe: Error while creating object using CreateInstance() Pin
Nathan Holt at EMOM6-Mar-08 4:42
Nathan Holt at EMOM6-Mar-08 4:42 
GeneralBug in atlhost.h Pin
imagiro29-Feb-08 0:51
imagiro29-Feb-08 0:51 
GeneralRe: Bug in atlhost.h Pin
Michael Dunn29-Feb-08 9:29
sitebuilderMichael Dunn29-Feb-08 9:29 
GeneralReporting Bugs Pin
imagiro6-Mar-08 21:57
imagiro6-Mar-08 21:57 
GeneralGetting element id on click event from web browser in ATL Pin
ashish@indianic27-Feb-08 20:28
ashish@indianic27-Feb-08 20:28 
Hi All,

I have developed the project in ATL in which I am getting events from the browser window through Invoke() function of the IDispatch interface.

And my question is that I want to get Mouse Click event with the element id on which event has been fired.How can I do that?

I tried below code to do the same but I m not getting success.
<br />
<br />
STDMETHODIMP CSimpleTab::Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags,<br />
                                    DISPPARAMS* pDispParams, VARIANT* pVarResult,<br />
                                    EXCEPINFO* pExcepInfo, UINT* puArgErr)<br />
{<br />
      switch (dispIdMember)<br />
      {<br />
          case DISPID_HTMLELEMENTEVENTS2_ONMOUSEDOWN:<br />
          {<br />
              CComVariant dis_event;<br />
			  dis_event = (CSimpleTab *)(this);<br />
			  <br />
			  IDispatch *lpDispatch = pVarResult->pdispVal;<br />
			  IHTMLEventObj * eventObj;<br />
			  HRESULT hr = lpDispatch->QueryInterface(IID_IHTMLEventObj,(void **)&eventObj);<br />
<br />
			  IHTMLElement * element;<br />
			  eventObj->get_srcElement(&element);<br />
          }<br />
      }<br />
}<br />


in above code I m getting null in to the pVarResult->pdispVal parameter.
Do you have any idea why does this happen?
Thanks in Advance.

Ashish Bhatt,
Indianic,Ahmedabad.

QuestionHow to use messagebox in ATL Pin
KASR126-Feb-08 21:41
KASR126-Feb-08 21:41 
AnswerRe: How to use messagebox in ATL Pin
ThatsAlok26-Feb-08 21:59
ThatsAlok26-Feb-08 21: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.