• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

What is the classname of internet explorer window 7? How to get the class name of any running app?

Hello,

anyone know the what the classname of internet explorer window 7 is?

AND / OR

is there a way to get the class name of a running windows app?

thanks so much, george
0
DevPPC
Asked:
DevPPC
  • 2
  • 2
1 Solution
 
rmaheshCommented:
Spy (or Spy++) could get you the class name any running window.

In Spy if you get the Windows (Windows option under Spy), it lists all the running windows. Double clicking on any window gets you everything about that window.

Alternatively you could locate the window by using "Find Window" under "Search"

Mahesh
0
 
DevPPCAuthor Commented:
Actually I meant programmatically, sorry.
0
 
rmaheshCommented:

This gets you the window handle based on the caption (you can pass NULL to lpClassName )

HWND FindWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName);

Then this could be used to get the class name

int GetClassName( HWND hWnd, LPTSTR lpClassName, int nMaxCount);

Mahesh
0
 
DevPPCAuthor Commented:
thanks.  I found my answer using spy to id the handle and a debug session to find the matching handle via the findwindow calls i was already making.

FYI: IE7 has added a new handle for dealing with attached toolbars.

george
0
 
Computer101Commented:
PAQed with points refunded (125)

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now