Solved

IE Hooking from C++

Posted on 2001-06-14
3
305 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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.

763 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

11 Experts available now in Live!

Get 1:1 Help Now