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

Simple VC++ DHTML hooking technique demonstration

By , 21 May 2001
 

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

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralDHTMLmemberjannathali9-Nov-09 2:55 
GeneralThank You!memberyoungji20-Dec-06 21:11 
GeneralNeed help!! Is there any way to find result code after CDHtmlDialog's Navigate method? ThanXmemberdimak19-Apr-04 2:49 
Generalproblem, please helpmemberkamkiram17-Mar-04 22:56 
Generalprinter page count programsusskaligambal9-Jan-04 18:37 
GeneralYou forget to delete the SinkmemberiProgram (WangYue)24-Aug-03 3:47 
Generalplz Help Me.....why don't work VTS_DISPATCHmemberJin430916-Apr-03 15:59 
QuestionHello,please tell me how can i get a flash EMBED's url?memberlymons26-Feb-03 20:55 
GeneralWhat's the difference between ConnectButton1 and ConnectButton2memberHoyle6-Oct-02 16:22 
QuestionHello,please tell me how can i get a flash EMBED's width and height?sussmy_tar26-Sep-02 18:59 
AnswerRe: Hello,please tell me how can i get a flash EMBED's width and height?memberStephaneRodriguez26-Sep-02 19:18 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height?membermy_tar26-Sep-02 22:58 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height?memberStephaneRodriguez26-Sep-02 23:02 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height?sussmy_tar27-Sep-02 15:24 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height?memberStephaneRodriguez28-Sep-02 5:57 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height?sussmy_arj28-Sep-02 23:37 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height?memberlymons26-Feb-03 20:52 
GeneralRe: Hello,please tell me how can i get a flash EMBED's width and height?sussmy_ajr29-Sep-02 0:01 
AnswerPlease HELP: Question with Flash on a web pagememberJDasari3-May-04 11:48 
GeneralCompiler problem.memberChagit3-Feb-02 23:18 
GeneralRe: Compiler problem.memberNS01010114-Jun-02 5:52 
GeneralRe: Compiler problem.memberstorein4-Mar-06 1:23 
GeneralRe: Compiler problem.memberabno29-Mar-07 22:28 
GeneralDHtmlHook - Pushing buttons does nothingmemberGD36916-Dec-01 19:04 
GeneralRe: DHtmlHook - Pushing buttons does nothingsussAnonymous12-Jul-02 11:34 
GeneralRe: DHtmlHook - Pushing buttons does nothingmemberHemant kulkarni8-Dec-02 23:57 
GeneralRe: DHtmlHook - Pushing buttons does nothingmemberkamkiram18-Mar-04 2:44 
Generalinstall ie6,it can workmemberxqyz888811-May-04 0:10 
GeneralHelp Required Plz...memberAnonymous5-Sep-01 20:11 
Generalmissing external _DIID_HTMLButtonElementEvents2memberMike Hughes30-Jul-01 8:44 
GeneralRe: missing external _DIID_HTMLButtonElementEvents2memberAnonymous31-Jul-01 14:51 
GeneralExcellent article!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!membernaresh19-Jul-01 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

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