Click here to Skip to main content
Licence 
First Posted 19 May 2001
Views 108,786
Bookmarked 31 times

Simple VC++ DHTML hooking technique demonstration

By | 21 May 2001 | Article
A sample code demonstrating how to use MSHTML lib.

Sample Image - dhtmldemo.gif

Introduction

This example demonstrates how to access DHTML object model and how to intercept the DHTML element events. It also demonstrates how to use connectionpoint with MFC. The demo program first loads up a sample HTML page which contains two button elements and a listbox element. Then it accesses button element DHTML object and intercepts its Click, DoubleClick, MouseMove, MouseOver, MouseDown and MouseUp events. After the program intercepts an event, it records the event information to the listbox element on the sample HTML page. The example shows that MSHTML is very useful for Internet and web programming. I hope this example would provide some help for any one who wants to use MSHTML library. (You need to download ie5_lib or later IE library to compile the demo project.)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Zuoying Zhou



Australia Australia

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralDHTML Pinmemberjannathali2:55 9 Nov '09  
GeneralThank You! Pinmemberyoungji21:11 20 Dec '06  
GeneralNeed help!! Is there any way to find result code after CDHtmlDialog's Navigate method? ThanX Pinmemberdimak2:49 19 Apr '04  
Generalproblem, please help Pinmemberkamkiram22:56 17 Mar '04  
Generalprinter page count program Pinsusskaligambal18:37 9 Jan '04  
GeneralYou forget to delete the Sink PinmemberiProgram (WangYue)3:47 24 Aug '03  
Generalplz Help Me.....why don't work VTS_DISPATCH PinmemberJin430915:59 16 Apr '03  
QuestionHello,please tell me how can i get a flash EMBED's url? Pinmemberlymons20:55 26 Feb '03  
GeneralWhat's the difference between ConnectButton1 and ConnectButton2 PinmemberHoyle16:22 6 Oct '02  
QuestionHello,please tell me how can i get a flash EMBED's width and height? Pinsussmy_tar18:59 26 Sep '02  
AnswerRe: Hello,please tell me how can i get a flash EMBED's width and height? PinmemberStephaneRodriguez19:18 26 Sep '02  
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinmembermy_tar22:58 26 Sep '02  
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? PinmemberStephaneRodriguez23:02 26 Sep '02  
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinsussmy_tar15:24 27 Sep '02  
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? PinmemberStephaneRodriguez5:57 28 Sep '02  
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinsussmy_arj23:37 28 Sep '02  
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinmemberlymons20:52 26 Feb '03  
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinsussmy_ajr0:01 29 Sep '02  
AnswerPlease HELP: Question with Flash on a web page PinmemberJDasari11:48 3 May '04  
GeneralCompiler problem. PinmemberChagit23:18 3 Feb '02  
GeneralRe: Compiler problem. PinmemberNS0101015:52 14 Jun '02  
GeneralRe: Compiler problem. Pinmemberstorein1:23 4 Mar '06  
GeneralRe: Compiler problem. Pinmemberabno22:28 29 Mar '07  
GeneralDHtmlHook - Pushing buttons does nothing PinmemberGD36919:04 16 Dec '01  
GeneralRe: DHtmlHook - Pushing buttons does nothing PinsussAnonymous11:34 12 Jul '02  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 22 May 2001
Article Copyright 2001 by Zuoying Zhou
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid