Solved

IE Hooking from C++

Posted on 2001-06-14
3
317 Views
Last Modified: 2008-03-03
I'm looking for a way to hook IE event such as MouseUp from my application and to take position of mouse cursor in Screen Cordinates relatively to IE Wnd?
0
Comment
Question by:Pimpf
  • 2
3 Comments
 
LVL 2

Expert Comment

by:MadYugoslav
ID: 6190720
First you need to find IE window.
After that set hook with SetWindowsHookEx() for WH_MOUSE type of hook.
In every call of your hook procedure check if it is messsage for IE window and is it your type of message MouseUp.
Code ?
0
 
LVL 2

Accepted Solution

by:
MadYugoslav earned 100 total points
ID: 6190763
LRESULT CALLBACK MouseProc(int nCode, WPARAM wParam, LPARAM lParam)
{
   if (nCode < 0)  // do not process the message
      return CallNextHookEx(myhookdata[MOUSE].hhook, nCode,
            wParam, lParam);

   // This is place to put your check
 
   return CallNextHookEx(myhookdata[MOUSE].hhook, nCode, wParam, lParam);
}
0
 
LVL 11

Expert Comment

by:griessh
ID: 6819114
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "MadYugoslav" comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now