Represents any window used by Windows, including those from other applications.
public class SystemWindow
Create a new SystemWindow instance from a window handle.
Create a new SystemWindow instance from a Windows Forms Control.
Return all direct child windows.
Return all descendant windows (child windows and their descendants).
Returns all available toplevel windows.
Whether this control, which is a check box or radio button, is checked.
The name of the window class (by the GetClassName API function). This class has nothing to do with classes in C# or other .NET languages.
The content of this window. Is only supported for some kinds of controls (like text or list boxes).
The Desktop window, i. e. the window that covers the complete desktop.
The ID of a control within a dialog. This is used in WM_COMMAND messages to distinguish which control sent the command.
Whether this window is currently enabled (able to accept keyboard input).
Compare two instances of this class for equality.
|Equals(Object)|| (Overrides Object.Equals(Object).)|
This window's extended style flags.
|FilterDescendantWindows(Boolean, Predicate<(Of <(SystemWindow>)>))|
Returns all child windows that match the given predicate.
Returns all toplevel windows that match the given predicate.
Allows getting the current foreground window and setting it.
Finds the system window below the given point. This need not be a toplevel window; disabled windows are not returned either. If you have problems with transparent windows that cover nontransparent windows, consider using FromPointEx(Int32, Int32, Boolean, Boolean), since that method tries hard to avoid this problem.
|FromPointEx(Int32, Int32, Boolean, Boolean)|
Finds the system window below the given point. This method uses a more sophisticated algorithm than FromPoint(Int32, Int32), but is slower.
Gets a device context for this window.
|GetHashCode()()()|| (Overrides Object.GetHashCode()()().)|
Highlights the window with a red border.
The Window handle of this window.
An image of this window. Unlike a screen shot, this will not contain parts of other windows (partially) cover this window. If you want to create a screen shot, use the CopyFromScreen(Point, Point, Size) function and use the Rectangle property for the range.
Compare two instances of this class for inequality.
Check whether this window is a descendant of ancestor
Whether this SystemWindow represents a valid window that existed when this SystemWindow instance was created. To check if a window still exists, better check its ClassName property.
The window's location inside its parent or on the screen.
Whether this window can be moved on the screen by the user.
This window's parent. A dialog's parent is its owner, a component's parent is the window that contains it.
The window's parent, but only if this window is its parent child. Some parents, like dialog owners, do not have the window as its child. In that case, null will be returned.
The character used to mask passwords, if this control is a text field. May be used for different purpose by other controls.
The window's position inside its parent or on the screen.
The process which created this window.
The window's position in absolute screen coordinates. Use Position if you want to use the relative position.
Forces the window to invalidate its client area and immediately redraw itself and any child controls.
The window's visible region.
Whether this window can be resized by the user. Resizing a window that cannot be resized by the user works, but may be irritating to the user.
Send a message to this window that it should close. This is equivalent to clicking the "X" in the upper right corner or pressing Alt+F4.
The window's size.
This window's style flags.
The Thread which created this window.
The title of this window (by the GetWindowText API function).
Whether this window always appears above all other windows that do not have this property set to true.
Returns or sets the visibility flag.
Whether this window is currently visible. A window is visible if its and all ancestor's visibility flags are true.
Get the window that is above this window in the Z order, or null, if this is the foreground window.
Get the window that is below this window in the Z order, or null if this is the lowest window.
Whether this window is minimized or maximized.
Assembly: ManagedWinapi (Module: ManagedWinapi) Version: 0.3.0.0 (0.3)