View Single Post
Old Jan 25th, 2007, 6:36 AM   #3
dr.p
Programmer
 
dr.p's Avatar
 
Join Date: Feb 2006
Location: Ohio
Posts: 93
Rep Power: 3 dr.p is on a distinguished road
bigguy, there's an ancient VB application called "WinHwnd" that is an example of what I believe you're looking to do. Not sure if you can still find that program on-line anymore.

If I recall correctly, you send the WM_GETTEXTLENGTH and WM_GETTEXT windows messages to the target window, in order to get the title.

Use the Win API function "GetClassName" to get the class name.

Don't know if there is a better [insulated] way to do all this in VB.Net. There probably is.
__________________
Neeley.org
dr.p is offline   Reply With Quote