• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

Getting captions of all active windows

How can I get the caption of all the active windows on my desktop ?
0
PaulBlack
Asked:
PaulBlack
1 Solution
 
Tommy HuiCommented:
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

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now