Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2006-11-02
6
Medium Priority
?
470 Views
Last Modified: 2010-04-16
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
Comment
Question by:DevPPC
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:rmahesh
ID: 17859741
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
 

Author Comment

by:DevPPC
ID: 17861559
Actually I meant programmatically, sorry.
0
 
LVL 5

Expert Comment

by:rmahesh
ID: 17862011

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
 

Author Comment

by:DevPPC
ID: 17931430
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18199894
PAQed with points refunded (125)

Computer101
EE Admin
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Introduction to Processes
Starting up a Project

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question