Click here to Skip to main content
15,886,110 members
Articles / Desktop Programming / MFC
Article

Simple VC++ DHTML hooking technique demonstration

Rate me:
Please Sign up or sign in to vote.
3.36/5 (9 votes)
21 May 2001 142.5K   1.5K   36   32
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


Written By
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: DHtmlHook - Pushing buttons does nothing Pin
Hemant kulkarni8-Dec-02 23:57
Hemant kulkarni8-Dec-02 23:57 
GeneralRe: DHtmlHook - Pushing buttons does nothing Pin
kamkiram18-Mar-04 2:44
kamkiram18-Mar-04 2:44 
Generalinstall ie6,it can work Pin
xqyz888811-May-04 0:10
xqyz888811-May-04 0:10 
GeneralHelp Required Plz... Pin
5-Sep-01 20:11
suss5-Sep-01 20:11 
Generalmissing external _DIID_HTMLButtonElementEvents2 Pin
30-Jul-01 8:44
suss30-Jul-01 8:44 
GeneralRe: missing external _DIID_HTMLButtonElementEvents2 Pin
31-Jul-01 14:51
suss31-Jul-01 14:51 
GeneralExcellent article!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
9-Jul-01 21:36
suss9-Jul-01 21:36 

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.