Windows Vista Forums

getting handle of child window with input focus

  1. #1


    Bob Guest

    getting handle of child window with input focus

    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 System SpecsSystem Spec

  2.   


  3. #2


    Bob Guest

    Re: getting 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@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 System SpecsSystem Spec


getting handle of child window with input focus
Similar Threads
Thread Forum
click in a IE child window VB Script
Window Focus Vista General
Input focus lost at logon screen Vista General
WPF Child Window Question Avalon
Host App in WPF child window Avalon