Solved

IE Hooking from C++

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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 …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

770 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