• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

getting handle of child window with input focus

#1
There's a Windows API function that provides various information about
top-level windows, but I can't remember its name. One of the values it
makes available is the window handle of the child window that has the input
focus.

Hopefully that's enough info so someone will think of the name of the
function and post it for me :)

Thanks,
Bob
 

My Computer

#2
typedef struct tagGUITHREADINFO {
DWORD cbSize;
DWORD flags;
HWND hwndActive;
HWND hwndFocus;
HWND hwndCapture;
HWND hwndMenuOwner;
HWND hwndMoveSize;
HWND hwndCaret;
RECT rcCaret;
} GUITHREADINFO, *PGUITHREADINFO;

BOOL GetGUIThreadInfo( DWORD idThread,
LPGUITHREADINFO lpgui
);

DWORD GetWindowThreadProcessId( HWND hWnd,
LPDWORD lpdwProcessId
);

"Bob" <spam@xxxxxx> wrote in message
news:eS8k80v$IHA.4528@xxxxxx

> There's a Windows API function that provides various information about
> top-level windows, but I can't remember its name. One of the values it
> makes available is the window handle of the child window that has the
> input focus.
>
> Hopefully that's enough info so someone will think of the name of the
> function and post it for me :)
>
> Thanks,
> Bob
>
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)