GUITHREADINFO Structure
GUITHREADINFO Structure

The GUITHREADINFO structure contains information about a graphical user interface (GUI) thread.

Syntax

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

Members

cbSize
Specifies the size of this structure, in bytes. The caller must set this to sizeof(GUITHREADINFO).
flags
Specifies the thread state. This member can be one or more of the following values.
GUI_16BITTASK
Windows XP: Represents the thread's application type. This bit is set if the thread corresponds to a 16-bit application.
GUI_CARETBLINKING
Represents the caret's blink state. This bit is set if the caret is visible.
GUI_INMENUMODE
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 the keyboard focus.
hwndCapture
Handle to the window that has captured the mouse.
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
A 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.

Structure Information

HeaderDeclared in Winuser.h, include Windows.h
Minimum operating systems Windows 98, Windows NT 4.0 with Service Pack 3

See Also

© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View