GUITHREADINFO

[This is preliminary documentation and subject to change.]

Carries information about a GUI thread.

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

Members

cbSize
Size of this structure, in bytes.
flags
Bitmask value. This member contains a combination of the following flags that, if set, indicate that the corresponding condition is true for the specified thread.
GUI_CARETBLINKING Represents the caret's blink state. This bit is set if the caret is visible.
GUI_INMENU Represents the thread's menu state. This bit is set if the thread is in menu mode.
GUI_INMOVESIZE Represents the thread's move state. This bit is set if the thread is in a move or size loop.
GUI_POPUPMENUMODE Represents the thread's pop-up menu state. This bit is set if the thread has an active pop-up menu.
GUI_SYSTEMMENUMODE Represents the thread's system menu state. This bit is set if the thread is in a system menu mode.

hwndActive
Handle to the active window within the thread.
hwndFocus
Handle to the window that has keyboard focus.
hwndCapture
Handle to the window that has mouse capture.
hwndMenuOwner
Handle to the window that owns any active menus.
hwndMoveSize
Handle to the window in a move or size loop.
hwndCaret
Handle to the window that is displaying the caret.
rcCaret
RECT structure that describes the caret's bounding rectangle, in client coordinates, relative to the window specified by the hwndCaret member.

Remarks

This structure is used with the GetGUIThreadInfo function to retrieve information about the active window or a specified GUI thread.