Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
469 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
[X]
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
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn different types of Android Layout and some basics of an Android App.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Six Sigma Control Plans

705 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