jodyl
asked on
Window class names
How do I determine what an application's window class name is. This is for use with the FindWindow() function.
HWND FindWindow(
LPCTSTR lpClassName, // address of class name
LPCTSTR lpWindowName // address of window name
);
An example I have shows how to look for WinWord running with the window classname = "OpusApp". However, I need to look for more than just Word running. I tried checking the Win95 registry for "OpusApp" to see if this info was stored there, but no luck.
Can someone point me in the right direction.
Thanks,
Jody
HWND FindWindow(
LPCTSTR lpClassName, // address of class name
LPCTSTR lpWindowName // address of window name
);
An example I have shows how to look for WinWord running with the window classname = "OpusApp". However, I need to look for more than just Word running. I tried checking the Win95 registry for "OpusApp" to see if this info was stored there, but no luck.
Can someone point me in the right direction.
Thanks,
Jody
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
BTW, I needed to know the class name because some apps, such as Word, put the name of the current document in the main window title so I can't always be sure of the title name.
Jody