Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I Find the Class Name of Windows Application??

Status
Not open for further replies.

Alegendxx

Programmer
Dec 30, 2001
4
US
I am using the FindWindow and FindWindowEx funtions to get a handle to any windows application. (WORKING WITH MFC)
In order to do this I have to know the application's class name. For Example,
FindWindow("AOL Frame25", NULL) returns the handle to an AOL instance.
My problem is I'm trying to do FindWindow on an application for which I do not know the Class Name, How do I find out what the class name for an application is?
In the example I gave above, "AOL Frame25" is the name of the Class for the AOL application, but I found this by digging around on the web. But the application I want to work with is not as popular as AOL.

Any tips would be appreciated.
Thanks.
 
Have you tried using the MS utility SPY++?

Use Search, Find Window, and drag the target over the application windows to see class names.
 
Thanks... I discovered SPYXX.exe which comes with the Visual Studio Package, shortly after I posted my question.
Thanks for answering my question, you had the right solution. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top