Jump to content

handle of child window with input focus


Recommended Posts

Posted

There's a Windows API function that provides various information about

top-level windows, but I can't remember its name. I think the first

parameter is the HWND of a top-level window, and it fills in a control block

structure in return. One of the values it makes available in the control

block 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

  • Replies 1
  • Created
  • Last Reply

Popular Days

Posted

Re: handle of child window with input focus

 

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@spam.com> wrote in message

news:e55qd04$IHA.4536@TK2MSFTNGP05.phx.gbl...

> There's a Windows API function that provides various information about

> top-level windows, but I can't remember its name. I think the first

> parameter is the HWND of a top-level window, and it fills in a control

> block structure in return. One of the values it makes available in the

> control block 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

>


×
×
  • Create New...