Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
463 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
6 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

839 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