View Single Post
hook on window events? (not self)
Old
  (#1)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default hook on window events? (not self) - 02-10-2004

Hi

I need to know how to hook on certain window events, but not for a hWnd of my program, for another window on the desktop. Let's say, for example, that I want my application to know when I click on the minimize button of this IE window (or any other window).

I know this is possible. I have a little app running here that does the same thing for Outlook Express, it hides OE in the systray when I click minimize, and fires it up again when I click on its icon in the systray. Unfortunately I don't have the source code for it. And I need to do just that in my program.

I know how to use EnumWindows() to find the handle of a particular window on the desktop, now I just want to know how to have a callback function called when a certain event occurs in this window. Polling is out of question

Any ideas ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote