Solved

IE Hooking from C++

Posted on 2001-06-14
3
349 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
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.

634 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