65.9K
CodeProject is changing. Read more.
Home

Simple VC++ DHTML hooking technique demonstration

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.36/5 (9 votes)

May 20, 2001

viewsIcon

144425

downloadIcon

1482

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.)