Click here to Skip to main content
12,893,452 members (56,921 online)
Click here to Skip to main content
Add your own
alternative version

Stats

129.3K views
1.4K downloads
35 bookmarked
Posted 19 May 2001

Simple VC++ DHTML hooking technique demonstration

, 21 May 2001
Rate this:
Please Sign up or sign in to vote.
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

Share

About the Author

Zuoying Zhou
Australia Australia
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralDHTML Pin
jannathali9-Nov-09 2:55
memberjannathali9-Nov-09 2:55 
GeneralThank You! Pin
youngji20-Dec-06 21:11
memberyoungji20-Dec-06 21:11 
GeneralNeed help!! Is there any way to find result code after CDHtmlDialog's Navigate method? ThanX Pin
dimak19-Apr-04 2:49
memberdimak19-Apr-04 2:49 
Generalproblem, please help Pin
kamkiram17-Mar-04 22:56
memberkamkiram17-Mar-04 22:56 
Generalprinter page count program Pin
kaligambal9-Jan-04 18:37
susskaligambal9-Jan-04 18:37 
GeneralYou forget to delete the Sink Pin
iProgram (WangYue)24-Aug-03 3:47
memberiProgram (WangYue)24-Aug-03 3:47 
Generalplz Help Me.....why don't work VTS_DISPATCH Pin
Jin430916-Apr-03 15:59
memberJin430916-Apr-03 15:59 
QuestionHello,please tell me how can i get a flash EMBED's url? Pin
lymons26-Feb-03 20:55
memberlymons26-Feb-03 20:55 
GeneralWhat's the difference between ConnectButton1 and ConnectButton2 Pin
Hoyle6-Oct-02 16:22
memberHoyle6-Oct-02 16:22 
QuestionHello,please tell me how can i get a flash EMBED's width and height? Pin
my_tar26-Sep-02 18:59
sussmy_tar26-Sep-02 18:59 
AnswerRe: Hello,please tell me how can i get a flash EMBED's width and height? Pin
StephaneRodriguez26-Sep-02 19:18
memberStephaneRodriguez26-Sep-02 19:18 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pin
my_tar26-Sep-02 22:58
membermy_tar26-Sep-02 22:58 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pin
StephaneRodriguez26-Sep-02 23:02
memberStephaneRodriguez26-Sep-02 23:02 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pin
my_tar27-Sep-02 15:24
sussmy_tar27-Sep-02 15:24 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pin
StephaneRodriguez28-Sep-02 5:57
memberStephaneRodriguez28-Sep-02 5:57 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pin
my_arj28-Sep-02 23:37
sussmy_arj28-Sep-02 23:37 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pin
lymons26-Feb-03 20:52
memberlymons26-Feb-03 20:52 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pin
my_ajr29-Sep-02 0:01
sussmy_ajr29-Sep-02 0:01 
AnswerPlease HELP: Question with Flash on a web page Pin
JDasari3-May-04 11:48
memberJDasari3-May-04 11:48 
GeneralCompiler problem. Pin
Chagit3-Feb-02 23:18
memberChagit3-Feb-02 23:18 
GeneralRe: Compiler problem. Pin
NS01010114-Jun-02 5:52
memberNS01010114-Jun-02 5:52 
GeneralRe: Compiler problem. Pin
storein4-Mar-06 1:23
memberstorein4-Mar-06 1:23 
GeneralRe: Compiler problem. Pin
abno29-Mar-07 22:28
memberabno29-Mar-07 22:28 
GeneralDHtmlHook - Pushing buttons does nothing Pin
GD36916-Dec-01 19:04
memberGD36916-Dec-01 19:04 
GeneralRe: DHtmlHook - Pushing buttons does nothing Pin
Anonymous12-Jul-02 11:34
sussAnonymous12-Jul-02 11:34 

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.

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