Click or drag to resize
Xcalibur Systems LLC Logo

WindowHelper Methods

The WindowHelper type exposes the following members.

Methods
 NameDescription
Public methodStatic memberEnableWindow 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 methodStatic memberEnumWindows 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 methodStatic memberFindWindow 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 methodStatic memberFindWindowEx 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 methodStatic memberFlashWindowEx Flashes the specified window. It does not change the active state of the window.

FlashWindowEx function

Public methodStatic memberGetActiveWindow Retrieves the window handle to the active window attached to the calling thread's message queue.

GetActiveWindow function

Public methodStatic memberGetAncestor Retrieves the handle to the ancestor of the specified window.

GetAncestor function

Public methodStatic memberGetForegroundWindow 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 methodStatic memberGetParent Retrieves a handle to the specified window's parent or owner.

GetParent function

Public methodStatic memberGetWindowText 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 methodStatic memberGetWindowTextLength 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 methodStatic memberGetWindowThreadProcessId 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 methodStatic memberIsHungAppWindow 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 methodStatic memberIsIconic Determines whether the specified window is minimized (iconic).

IsIconic function

Public methodStatic memberIsWindowVisible Determines the visibility state of the specified window.

IsWindowVisible function

Public methodStatic memberIsZoomed Determines whether a window is maximized.

IsZoomed function

Public methodStatic memberLockSetForegroundWindow The foreground process can call the LockSetForegroundWindow function to disable calls to the function.

LockSetForegroundWindow function

Public methodStatic memberSetForegroundWindow 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 methodStatic memberSetWindowPos 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 methodStatic memberShowWindow Sets the specified window's show state.

ShowWindow function

Public methodStatic memberShowWindowAsync Sets the show state of a window without waiting for the operation to complete.

ShowWindowAsync function

Top
See Also