![Xcalibur Systems LLC Logo](../icons/logo.png) |
WindowHelper Class |
Win32 API Helper: Windows
Inheritance Hierarchy Namespace: Xcalibur.NativeMethods.V2.WindowsAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntaxpublic static class WindowHelper
Public NotInheritable Class WindowHelper
public ref class WindowHelper abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type WindowHelper = class end
The WindowHelper type exposes the following members.
Methods | Name | Description |
---|
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | FlashWindowEx |
Flashes the specified window. It does not change the active state of the window.
FlashWindowEx function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | GetActiveWindow |
Retrieves the window handle to the active window attached to the calling thread's message
queue.
GetActiveWindow function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | GetAncestor |
Retrieves the handle to the ancestor of the specified window.
GetAncestor function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | GetParent |
Retrieves a handle to the specified window's parent or owner.
GetParent function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | IsIconic |
Determines whether the specified window is minimized (iconic).
IsIconic function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | IsWindowVisible |
Determines the visibility state of the specified window.
IsWindowVisible function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | IsZoomed |
Determines whether a window is maximized.
IsZoomed function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | LockSetForegroundWindow |
The foreground process can call the LockSetForegroundWindow function to disable calls to
the function.
LockSetForegroundWindow function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | 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 |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | ShowWindow |
Sets the specified window's show state.
ShowWindow function |
![Public method Public method](../icons/pubMethod.gif) ![Static member Static member](../icons/Static.gif) | ShowWindowAsync |
Sets the show state of a window without waiting for the operation to complete.
ShowWindowAsync function |
Top
See Also