Solved

IE Hooking from C++

Posted on 2001-06-14
3
334 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

837 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