General windowing functions

Functions in this section apply to virtually every window

GetActiveWindow

Returns an active window attached to a thread, which created a window identified by function's input parameter

GetChildDepth

Returns a number of levels in the windows' hierarchy tree between 2 windows.

GetChildWindows

Returns window handles of all windows, which are children (direct or indirect i.e. grand-children, grand-grand-children etc) of a window with a handle given as an input parameter.

GetClassName

Retrieves the name of the class to which the specified window belongs.

GetDesktopWindow

Returns a handle to the desktop window. The desktop window covers the entire screen. The desktop window is the area on top of which other windows are painted.

GetForegroundWindow

Returns a handle to the foreground window (the window with which the user is currently working)

GetParent

Returns a handle to the specified window's parent or owner.

GetWindow

Retrieves a handle to a window that has the specified relationship (Z-Order or owner) to the specified window.

GetWindowID

Returns the control Id of the specified window.

GetWindowLong

Retrieves information about the specified window. This is a simple wrapper around Win32 function.

GetWindowRect

Retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

GetWindowText

Retrieves the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is retrieved.

IsChild

Tests whether a window is a child window or descendant window of a specified parent window.

IsWindow

Tests whether the specified window handle identifies an existing window.

IsWindowEnabled

The IsWindowEnabled function determines whether the specified window is enabled for mouse and keyboard input.

IsWindowStyle

The IsWindowStyle function determines whether the specified window has a particular window style.

IsWindowStyleEx

The IsWindowStyleEx function determines whether the specified window has a particular extended window style.

IsWindowVisible

The IsWindowVisible function retrieves the visibility state of the specified window.

PostMessage

Posts a message to a given window.

SendMessage

Sends a message to a given window.

SetActiveWindow

Activates a window.

SetFocus

The SetFocus function sets the keyboard focus to the specified window

SetForegroundWindow

The SetForegroundWindow function puts 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.

SetWindowPos

The SetWindowPos function changes the size, position, and Z order of a child, pop-up, or top-level window.

ShowWindow

Set's the specified window's show state.