Click here to Skip to main content
16,012,468 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 144K   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: Compiler problem. Pin
storein4-Mar-06 1:23
storein4-Mar-06 1:23 
GeneralRe: Compiler problem. Pin
abno29-Mar-07 22:28
abno29-Mar-07 22:28 
GeneralDHtmlHook - Pushing buttons does nothing Pin
GD36916-Dec-01 19:04
GD36916-Dec-01 19:04 
GeneralRe: DHtmlHook - Pushing buttons does nothing Pin
Anonymous12-Jul-02 11:34
Anonymous12-Jul-02 11:34 
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 
Hello

This is infact a very interesting article.
I am currently working on the similar module (hooking DHTML with VC++) but even following this project steps and coding i am unsuccessful in making my project work accurately , I have one request , if anyone could kindly guide me the steps wise procedure (just briefly) abt my specfic query
(how to embed DHTML with VC++, hooking procedure) so that i can know abt my fault.
I will b grateful

my mail address is :
good_and_decent@yahoo.com

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