Solved

Getting captions of all active windows

Posted on 1998-12-16
1
150 Views
Last Modified: 2013-11-20
How can I get the caption of all the active windows on my desktop ?
0
Comment
Question by:PaulBlack
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 total points
Comment Utility
There is only one active window at any particular time. It is the frame window of the focused application.

However, to retrieve every window, you can use GetDesktopWindow() and use GetWindow( ..., GW_CHILD) or GetWindow( ..., GW_HWNDNEXT) to enumerate each window. Then you can use GetWindowText() to retrieve the text of that window.
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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

10 Experts available now in Live!

Get 1:1 Help Now