Click here to Skip to main content
Click here to Skip to main content

Simple VC++ DHTML hooking technique demonstration

By , 21 May 2001
Rate this:
Please Sign up or sign in to vote.

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
No Biography provided

Comments and Discussions

 
GeneralDHTML Pinmemberjannathali9-Nov-09 2:55 
GeneralThank You! Pinmemberyoungji20-Dec-06 21:11 
GeneralNeed help!! Is there any way to find result code after CDHtmlDialog's Navigate method? ThanX Pinmemberdimak19-Apr-04 2:49 
Generalproblem, please help Pinmemberkamkiram17-Mar-04 22:56 
Generalprinter page count program Pinsusskaligambal9-Jan-04 18:37 
GeneralYou forget to delete the Sink PinmemberiProgram (WangYue)24-Aug-03 3:47 
Generalplz Help Me.....why don't work VTS_DISPATCH PinmemberJin430916-Apr-03 15:59 
QuestionHello,please tell me how can i get a flash EMBED's url? Pinmemberlymons26-Feb-03 20:55 
GeneralWhat's the difference between ConnectButton1 and ConnectButton2 PinmemberHoyle6-Oct-02 16:22 
QuestionHello,please tell me how can i get a flash EMBED's width and height? Pinsussmy_tar26-Sep-02 18:59 
AnswerRe: Hello,please tell me how can i get a flash EMBED's width and height? PinmemberStephaneRodriguez26-Sep-02 19:18 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinmembermy_tar26-Sep-02 22:58 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? PinmemberStephaneRodriguez26-Sep-02 23:02 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinsussmy_tar27-Sep-02 15:24 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? PinmemberStephaneRodriguez28-Sep-02 5:57 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinsussmy_arj28-Sep-02 23:37 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinmemberlymons26-Feb-03 20:52 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height? Pinsussmy_ajr29-Sep-02 0:01 
AnswerPlease HELP: Question with Flash on a web page PinmemberJDasari3-May-04 11:48 
GeneralCompiler problem. PinmemberChagit3-Feb-02 23:18 
GeneralRe: Compiler problem. PinmemberNS01010114-Jun-02 5:52 
GeneralRe: Compiler problem. Pinmemberstorein4-Mar-06 1:23 
GeneralRe: Compiler problem. Pinmemberabno29-Mar-07 22:28 
GeneralDHtmlHook - Pushing buttons does nothing PinmemberGD36916-Dec-01 19:04 
GeneralRe: DHtmlHook - Pushing buttons does nothing PinsussAnonymous12-Jul-02 11:34 

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.

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