|
-
April 3rd, 1999, 06:40 AM
#1
Title of the active window
Hello,
What is the best way to get the title (or any other info) about the current active window (It may not belong to my application). In other words I mean the window user working with.
As I understandd CWnd::GetActiveWindow works only with current Application
Best regards, Constantin Kuznetsov Jr.
-
April 3rd, 1999, 05:11 PM
#2
Re: Title of the active window
This is the standard action to retrieve a caption of any Windows control.
char szTitle[80];
HWND hActiveWnd = GetActiveWindow();
hActiveWnd = GetWindowText(hActiveWnd, szTitle);
This is using Windows API but it is easy to find analogs in Visual C
-
May 3rd, 1999, 03:38 PM
#3
Re: Title of the active window
If the application may not be urs, u can use GetForegroundWindow(). This will help i think
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|