Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: CreateDesktop - how to change the wallpaper Pin
Rajkumar R27-Feb-08 22:40
Rajkumar R27-Feb-08 22:40 
QuestionRe: CreateDesktop - how to change the wallpaper Pin
Jayapal Chandran27-Feb-08 22:57
Jayapal Chandran27-Feb-08 22:57 
GeneralRe: CreateDesktop - how to change the wallpaper Pin
Rajkumar R27-Feb-08 23:05
Rajkumar R27-Feb-08 23:05 
GeneralRe: CreateDesktop - how to change the wallpaper Pin
Jayapal Chandran27-Feb-08 23:15
Jayapal Chandran27-Feb-08 23:15 
QuestionRe: CreateDesktop - how to change the wallpaper Pin
David Crow28-Feb-08 2:45
David Crow28-Feb-08 2:45 
GeneralRe: CreateDesktop - how to change the wallpaper Pin
tina->newcoder28-Feb-08 5:35
tina->newcoder28-Feb-08 5:35 
GeneralRe: CreateDesktop - how to change the wallpaper Pin
ThatsAlok28-Feb-08 22:37
ThatsAlok28-Feb-08 22:37 
QuestionGetting element id on click event from web browser Pin
ashish@indianic27-Feb-08 22:10
ashish@indianic27-Feb-08 22:10 
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.


STDMETHODIMP CSimpleTab::Invoke(DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags,
DISPPARAMS* pDispParams, VARIANT* pVarResult,
EXCEPINFO* pExcepInfo, UINT* puArgErr)
{
switch (dispIdMember)
{
case DISPID_HTMLELEMENTEVENTS2_ONMOUSEDOWN:
{
CComVariant dis_event;
dis_event = (CSimpleTab *)(this);

IDispatch *lpDispatch = pVarResult->pdispVal;
IHTMLEventObj * eventObj;
HRESULT hr = lpDispatch->QueryInterface(IID_IHTMLEventObj,(void **)&eventObj);

IHTMLElement * element;
eventObj->get_srcElement(&element);
}
}
}


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.

AnswerCros Post = No help. Pin
Rajesh R Subramanian27-Feb-08 22:16
professionalRajesh R Subramanian27-Feb-08 22:16 
GeneralRe: Cros Post = No help. Pin
ashish@indianic27-Feb-08 22:19
ashish@indianic27-Feb-08 22:19 
QuestionRe: Cros Post = No help. Pin
David Crow28-Feb-08 2:43
David Crow28-Feb-08 2:43 
AnswerRe: Getting element id on click event from web browser Pin
Rajkumar R27-Feb-08 23:06
Rajkumar R27-Feb-08 23:06 
Questionapplication TopMost Window Pin
Frédéric Steczycki27-Feb-08 21:40
Frédéric Steczycki27-Feb-08 21:40 
GeneralRe: application TopMost Window Pin
Christian Graus27-Feb-08 22:38
protectorChristian Graus27-Feb-08 22:38 
Questionhow to calculate 3x3 Gaussian mask? Pin
gentleguy27-Feb-08 21:24
gentleguy27-Feb-08 21:24 
AnswerRe: how to calculate 3x3 Gaussian mask? Pin
David Crow28-Feb-08 2:41
David Crow28-Feb-08 2:41 
AnswerRe: how to calculate 3x3 Gaussian mask? Pin
CPallini28-Feb-08 3:59
mveCPallini28-Feb-08 3:59 
Generalchap_09 ZFXInput of 3D Game Engine Programming Pin
akira3227-Feb-08 21:12
akira3227-Feb-08 21:12 
GeneralRe: chap_09 ZFXInput of 3D Game Engine Programming [modified] Pin
Alexander M.,27-Feb-08 21:56
Alexander M.,27-Feb-08 21:56 
GeneralRe: chap_09 ZFXInput of 3D Game Engine Programming Pin
CPallini27-Feb-08 21:58
mveCPallini27-Feb-08 21:58 
GeneralRe: chap_09 ZFXInput of 3D Game Engine Programming Pin
Rajkumar R27-Feb-08 22:19
Rajkumar R27-Feb-08 22:19 
QuestionTools for Unicode Conversion? Pin
Nandu_77b27-Feb-08 20:12
Nandu_77b27-Feb-08 20:12 
QuestionRe: Tools for Unicode Conversion? Pin
Rajesh R Subramanian27-Feb-08 20:17
professionalRajesh R Subramanian27-Feb-08 20:17 
GeneralRe: Tools for Unicode Conversion? Pin
Nandu_77b27-Feb-08 21:50
Nandu_77b27-Feb-08 21:50 
GeneralRe: Tools for Unicode Conversion? Pin
Rajesh R Subramanian27-Feb-08 22:03
professionalRajesh R Subramanian27-Feb-08 22:03 

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.