Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 6th, 2005, 07:41 AM
APX APX is offline
Registered User
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to capture mouse coordinates in an IE window?


I´m working on a Single Sign On system using an IE BHO in VC 6.0
I would like to capture the mouse clicks in IHTMLDocument2, and using elementFromPoint() obtain a element name, so later i could complete the data.
I think i should use put_onclick() to override the default mouse handler, but the documentation is really bad and i dont understand how to use it.

It says that the parameter is a pointer to an IDispatch interface, that implements a default mouse handler, but...

Should i create a new interfase with a method to handle the mouse events?
How should this method be named?

I would really apreciate any help

Thanks in advance
Old May 17th, 2005, 03:01 AM
Registered User
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to vigorous365 Send a message via MSN to vigorous365

Use Message Processing function OnLButtonDown().You can do what you want with it.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forward Mouse event in Main window to its controls guntank C# 2005 0 November 15th, 2006 09:32 PM
Image Coordinates everest ASP.NET 1.0 and 1.1 Basics 1 October 18th, 2005 11:54 PM
VC++ - how to get mouse coordinates razeeth Visual C++ 0 December 21st, 2004 02:25 AM
Capture ALERT window contents GeoMeskin Javascript 2 October 21st, 2003 08:41 AM
coordinates buzzfever Beginning VB 6 1 September 23rd, 2003 05:32 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.