I\'m developing a WIN32/C++ application containing a main window and a lot of child windows, and I\'m looking for tools that could assist me in tracking down focus bugs.
I think you can use Spy++ which are part oh Visual Studio or Windows SDK.
It tells you lot of other information, you can also capture messages sent to selected window.