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
456 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about a problem I had getting the GPS LocationListener working.
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now