Simple VC++ DHTML Hooking Technique | CodeGuru

Simple VC++ DHTML Hooking Technique

Environment: VC6 SP4, ie5, ie5-lib 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 containing two button elements and a listbox element. Then it accesses a button element […]

Written By
CodeGuru Staff
CodeGuru Staff
Jun 4, 2001
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Environment: VC6 SP4, ie5, ie5-lib

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
containing two button elements and a listbox element. Then it accesses a
button element DHTML object and intercepts its Click, DoubleClick,
MouseMove, MouseOver, MouseDown, MouseUp events. After the program intercepts an
event, it records the event information to a ListBox element on sample html page.
The example is showing that MSHTML is very useful for internet and web programming.
I hope this example provides some help for any one who want to use MSHTML
library. (You need to download ie5_lib or a later IE library to compile the demo
project)

Downloads

Download demo project – 48 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.