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

C / C++ / MFC

 
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 
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 
On the event handler get the event from the html document,

IHTMLDocument2::get_parentWindow(); the window that received the event
IHTMLWindow2::get_event(); get the event object from window
IHTMLEventObj::get_srcElement(); get the element which fired the event
IHTMLElement::get_id(); get the id of the element.

find the source code for this in MFC src directory, in the file dlgdhtml.cpp in the function CDHtmlEventSink::FindDHtmlEventEntry which is called from CDHtmlEventSink::Invoke();

or go for CDHTMLDialog, very easy to use, you just want to add the message handler
DHTML_EVENT_ONMOUSEDOWN(elemName, memberFxn);

I used some code from the CDHtmlDialog and modified for my requirement some months before, as CDHtmlDialog cannot handle event when more than one frame (IFrame, frame) exists in the main html page.
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 
GeneralRe: Tools for Unicode Conversion? Pin
David Crow28-Feb-08 2:39
David Crow28-Feb-08 2:39 
GeneralRe: Tools for Unicode Conversion? Pin
Nandu_77b9-Mar-08 22:49
Nandu_77b9-Mar-08 22:49 
Questionmouse pointer hides in richedit control? Pin
flyingxu27-Feb-08 20:00
flyingxu27-Feb-08 20:00 
AnswerRe: mouse pointer hides in richedit control? Pin
Rajesh R Subramanian27-Feb-08 20:45
professionalRajesh R Subramanian27-Feb-08 20:45 

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.