Right, ok...

Now how do you get the handle of the window that has just been clicked on? (It's not a window of my program...it could be notepad or the 3dfx TV application...