Managed Windows API
SystemWindow Class
NamespacesManagedWinapi.WindowsSystemWindow
Represents any window used by Windows, including those from other applications.
Declaration Syntax
C#
public class SystemWindow
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
SystemWindow(IntPtr)
Create a new SystemWindow instance from a window handle.

SystemWindow(Control)
Create a new SystemWindow instance from a Windows Forms Control.

AllChildWindows
Return all direct child windows.

AllDescendantWindows
Return all descendant windows (child windows and their descendants).

AllToplevelWindows
Returns all available toplevel windows.

CheckState
Whether this control, which is a check box or radio button, is checked.

ClassName
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.

Content
The content of this window. Is only supported for some kinds of controls (like text or list boxes).

DesktopWindow
The Desktop window, i. e. the window that covers the complete desktop.

DialogID
The ID of a control within a dialog. This is used in WM_COMMAND messages to distinguish which control sent the command.

Enabled
Whether this window is currently enabled (able to accept keyboard input).

Equality(SystemWindow, SystemWindow)
Compare two instances of this class for equality.

Equals(Object) (Overrides Object.Equals(Object).)
Equals(SystemWindow)
ExtendedStyle
This window's extended style flags.

FilterDescendantWindows(Boolean, Predicate<(Of <(SystemWindow>)>))
Returns all child windows that match the given predicate.

FilterToplevelWindows(Predicate<(Of <(SystemWindow>)>))
Returns all toplevel windows that match the given predicate.

ForegroundWindow
Allows getting the current foreground window and setting it.

FromPoint(Int32, Int32)
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.

GetDeviceContext(Boolean)
Gets a device context for this window.

GetHashCode()()() (Overrides Object.GetHashCode()()().)
Highlight()()()
Highlights the window with a red border.

HWnd
The Window handle of this window.

Image
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.

Inequality(SystemWindow, SystemWindow)
Compare two instances of this class for inequality.

IsDescendantOf(SystemWindow)
Check whether this window is a descendant of ancestor

IsValid()()()
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.

Location
The window's location inside its parent or on the screen.

Movable
Whether this window can be moved on the screen by the user.

Parent
This window's parent. A dialog's parent is its owner, a component's parent is the window that contains it.

ParentSymmetric
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.

PasswordCharacter
The character used to mask passwords, if this control is a text field. May be used for different purpose by other controls.

Position
The window's position inside its parent or on the screen.

Process
The process which created this window.

Rectangle
The window's position in absolute screen coordinates. Use Position if you want to use the relative position.

Refresh()()()
Forces the window to invalidate its client area and immediately redraw itself and any child controls.

Region
The window's visible region.

Resizable
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.

SendClose()()()
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.

Size
The window's size.

Style
This window's style flags.

Thread
The Thread which created this window.

Title
The title of this window (by the GetWindowText API function).

TopMost
Whether this window always appears above all other windows that do not have this property set to true.

VisibilityFlag
Returns or sets the visibility flag.

Visible
Whether this window is currently visible. A window is visible if its and all ancestor's visibility flags are true.

WindowAbove
Get the window that is above this window in the Z order, or null, if this is the foreground window.

WindowBelow
Get the window that is below this window in the Z order, or null if this is the lowest window.

WindowState
Whether this window is minimized or maximized.

Inheritance Hierarchy
Object
SystemWindow

Assembly: ManagedWinapi (Module: ManagedWinapi) Version: 0.3.0.0 (0.3)