tags:

views:

21

answers:

1

Hello,

Does someone knows how can I find the HWND for all the msn messenger currently opened conversations windows?

OR how can i find the HWND for the textbox whih is currently focused?

TY

A: 

You can use the Spy++ tool which comes with Visual Studio to get the class name of any window of any running program. You can then pass that class name to FindWindow() to get the handle of the appropriate window.

I checked the Windows Live Messenger installed on my system, the conversation windows have the class name: "IMWindowClass".

Ferruccio
It has to be done progrematically. can't ask the user to open spy ++
I meant that you can use Spy++ to figure out what the window class names are to pass to FindWindow().
Ferruccio