|
WindowHelper Methods |
The WindowHelper type exposes the following members.
Methods | Name | Description |
---|
| EnableWindow |
Enables or disables mouse and keyboard input to the specified window or control. When input
is disabled, the window does not receive input such as mouse clicks and key presses. When
input is enabled, the window receives all input.
EnableWindow function |
| EnumWindows |
Enumerates all top-level windows on the screen by passing the handle to each window, in
turn, to an application-defined callback function. EnumWindows continues until the last
top-level window is enumerated or the callback function returns FALSE.
EnumWindows function |
| FindWindow |
Retrieves a handle to the top-level window whose class name and window name match the
specified strings. This function does not search child windows. This function does not
perform a case-sensitive search.
To search child windows, beginning with a specified child window, use the
function.
FindWindow function |
| FindWindowEx |
Retrieves a handle to a window whose class name and window name match the specified strings.
The function searches child windows, beginning with the one following the specified child
window. This function does not perform a case-sensitive search.
FindWindowEx function |
| FlashWindowEx |
Flashes the specified window. It does not change the active state of the window.
FlashWindowEx function |
| GetActiveWindow |
Retrieves the window handle to the active window attached to the calling thread's message
queue.
GetActiveWindow function |
| GetAncestor |
Retrieves the handle to the ancestor of the specified window.
GetAncestor function |
| GetForegroundWindow |
Retrieves a handle to the foreground window (the window with which the user is currently
working). The system assigns a slightly higher priority to the thread that creates the
foreground window than it does to other threads.
GetForegroundWindow function |
| GetParent |
Retrieves a handle to the specified window's parent or owner.
GetParent function |
| GetWindowText |
Copies the text of the specified window's title bar (if it has one) into a buffer. If the
specified window is a control, the text of the control is copied. However, GetWindowText
cannot retrieve the text of a control in another application.
GetWindowText function |
| GetWindowTextLength |
Retrieves the length, in characters, of the specified window's title bar text (if the
window has a title bar). If the specified window is a control, the function retrieves the
length of the text within the control. However, GetWindowTextLength cannot retrieve the
length of the text of an edit control in another application.
GetWindowTextLength function |
| GetWindowThreadProcessId |
Retrieves the identifier of the thread that created the specified window and, optionally,
the identifier of the process that created the window.
GetWindowThreadProcessId function |
| IsHungAppWindow |
Determines whether the system considers that a specified application is not responding. An
application is considered to be not responding if it is not waiting for input, is not in
startup processing, and has not called PeekMessage within the internal timeout period of 5
seconds.
IsHungAppWindow function |
| IsIconic |
Determines whether the specified window is minimized (iconic).
IsIconic function |
| IsWindowVisible |
Determines the visibility state of the specified window.
IsWindowVisible function |
| IsZoomed |
Determines whether a window is maximized.
IsZoomed function |
| LockSetForegroundWindow |
The foreground process can call the LockSetForegroundWindow function to disable calls to
the function.
LockSetForegroundWindow function |
| SetForegroundWindow |
Brings the thread that created the specified window into the foreground and activates the
window. Keyboard input is directed to the window, and various visual cues are changed for
the user. The system assigns a slightly higher priority to the thread that created the
foreground window than it does to other threads.
SetForegroundWindow function |
| SetWindowPos |
Changes the size, position, and Z order of a child, pop-up, or top-level window. These
windows are ordered according to their appearance on the screen. The topmost window receives
the highest rank and is the first window in the Z order.
SetWindowPos function |
| ShowWindow |
Sets the specified window's show state.
ShowWindow function |
| ShowWindowAsync |
Sets the show state of a window without waiting for the operation to complete.
ShowWindowAsync function |
TopSee Also