Click or drag to resize

Win32Window Class

A wrapper class for IWin32Window. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  callback.ShellBoost.Core.UtilitiesWin32Window

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public class Win32Window : IWin32Window, 
	IEquatable<Win32Window>

The Win32Window type exposes the following members.

Constructors
  NameDescription
Public methodWin32Window
Initializes a new instance of the Win32Window class.
Top
Properties
  NameDescription
Public propertyStatic memberActive
Gets the active window attached to the calling thread's message queue
Public propertyAllChildWindows
Gets the child and grand child windows that belong to this parent window.
Public propertyChildWindows
Gets the child windows that belong to this parent window.
Public propertyClassName
Gets the name of the class to which this window belongs.
Public propertyClientRect
Gets the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).
Public propertyStatic memberConsole
Gets the window used by the console associated with the calling process.
Public propertyStatic memberDesktop
Gets the desktop window.
Public propertyDisplayAffinity
Gets or sets this window's display affinity settings.
Public propertyExtendedStyles
Gets or sets the window extended styles.
Public propertyStatic memberFocus
Gets the window that has the keyboard focus, if the window is attached to the calling thread's message queue.
Public propertyStatic memberForeground
Gets the foreground window (the window with which the user is currently working).
Public propertyHandle
Gets the window handle.
Public propertyInt32Handle
Gets the window handle as an Int32.
Public propertyIsActive
Gets a value indicating whether this instance is the active window.
Public propertyIsDesktop
Gets a value indicating whether this instance is the desktop window.
Public propertyIsDialog
Gets a value indicating whether this instance is a dialog box.
Public propertyIsFocus
Gets a value indicating whether this instance is the focus window.
Public propertyIsForeground
Gets a value indicating whether this instance is the foreground window.
Public propertyIsHungApp
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. This function is not intended for general use. It may be altered or unavailable in subsequent versions of Windows.
Public propertyIsIconic
Determines whether a window is minimized (iconic).
Public propertyIsMenu
Gets a value indicating whether this instance is a menu window.
Public propertyIsUnicode
Determines whether this window is a native Unicode window.
Public propertyIsVisible
Determines the visibility state of this window.
Public propertyIsWindow
Gets a value indicating whether this instance identifies an existing window.
Public propertyIsZoomed
Determines whether a window is maximized.
Public propertyLastActivePopup
Determines which pop-up window owned by this window was most recently active. The return value is the same as the handle parameter, if any of the following conditions are met: 1) The window identified by hWnd was most recently active. 2) The window identified by hWnd does not own any pop-up windows. 3) The window identifies by hWnd is not a top-level window, or it is owned by another window.
Public propertyModuleFileName
Gets the full path and file name of the module associated with this window.
Public propertyOwner
Gets this window's owner window, if any.
Public propertyParent
Gets this window's parent window, if any.
Public propertyParentWindows
Gets all parent windows.
Public propertyPlacement
Gets or sets the show state and the restored, minimized, and maximized positions of the window.
Public propertyProcess
Gets the process that created the window.
Public propertyProcessId
Gets the identifier of the process that created the window.
Public propertyProcessWindows
Gets the list of all windows that belong to this window's process.
Public propertyProperties
Gets the properties of this window.
Public propertyRealClassName
Gets the real name of the class to which this window belongs.
Public propertyRect
Gets the dimensions of the bounding rectangle of the window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.
Public propertyRoot
Gets this window's root window, if any.
Public propertyRootOwner
Gets this window's root owner window, if any.
Public propertyStatic memberShell
Gets the shell window.
Public propertyStyles
Gets or sets the window styles.
Public propertyText
Gets the text of the window's title bar (if it has one). If this window is a control, the text of the control.
Public propertyThreadId
Retrieves the identifier of the thread that created this window.
Public propertyTop
Examines the Z order of the child windows associated with this window and retrieves a handle to the child window at the top of the Z order.
Public propertyStatic memberTopLevelWindows
Enumerates all top-level windows on the screen. This function does not enumerate child windows, with the exception of a few top-level windows owned by the system that have the WS_CHILD style.
Top
Methods
  NameDescription
Public methodBringToTop
Brings this window to the top of the Z order. If the window is a top-level window, it is activated. If the window is a child window, the top-level parent window associated with the child window is activated.
Public methodCenter
Centers this window relatively to the screen.
Public methodCenter(IntPtr)
Centers this window relatively to another window, or to the screen.
Public methodClientToScreen
converts the client-area coordinates of a specified point to screen coordinates.
Public methodClose
Closes this window.
Public methodDestroy
Destroys this window.
Public methodDisable
Disables mouse and keyboard input to this window or control. When input is disabled, the window does not receive input such as mouse clicks and key presses.
Public methodEnable
Enables mouse and keyboard input to this window or control. When input is enabled, the window receives all input.
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodEquals(Win32Window)
Indicates whether the current object is equal to another object of the same type.
Public methodExecuteWithDC(ActionIntPtr)
Executes the specified action with a device context (DC).
Public methodExecuteWithDCT(FuncIntPtr, T)
Executes the specified function with a device context (DC).
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFromDC
Gets the window associated with the specified display device context (DC).
Public methodStatic memberFromHandle
Returns a Win32Window instance from a handle, or null if the handle doesn't identify an existing window.
Public methodStatic memberFromPhysicalPoint
Get the window that contains the specified physical point.
Public methodStatic memberFromPoint
Gets the window that contains the specified point.
Public methodStatic memberFromProcess(Int32)
Get a list of windows owned by the specified process.
Public methodStatic memberFromProcess(Process)
Get a list of windows owned by the specified process.
Public methodGetChildWindowFromPoint
Determines which, if any, of the child windows belonging to this parent window contains the specified point. The function can ignore invisible, disabled, and transparent child windows. The search is restricted to immediate child windows. Grandchildren and deeper descendants are not searched.
Public methodGetDC
Retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. The ReleaseDC function must be called to release the device context
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetLong
Retrieves information about this window. The function also retrieves the value at a specified offset into the extra window memory.
Public methodGetProperty
Retrieves a data handle from the property list of the specified window. The character string identifies the handle to be retrieved. The string and handle must have been added to the property list by a previous call to the SetProp function.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHide
Hides the window and activates another window.
Public methodHideAsync
Hides the window and activates another window without waiting for the operation to complete.
Public methodInvalidate
Invalidates this window's client area.
Public methodInvalidateRect
Adds a rectangle to this window's update region. The update region represents the portion of the window's client area that must be redrawn.
Public methodInvalidateRgn
Invalidates the client area within the specified region by adding it to the current update region of a window. The invalidated region, along with all other areas in the update region, is marked for painting when the next WM_PAINT message occurs.
Public methodIsChildOf
Determines whether this window is a child or grand child of the specified parent window.
Public methodIsEnabled
Determines whether the specified window is enabled for mouse and keyboard input.
Public methodIsParentOf
Determines whether this window is a parent or grand parent of the specified child window.
Public methodLogicalToPhysicalPoint
Converts the logical coordinates of a point in a window to physical coordinates.
Public methodMapPoints
Converts (maps) a set of points from a coordinate space relative to this window to a coordinate space relative to another window.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMove(Int32, Int32)
Changes the position of this window. For a top-level window, the position is relative to the upper-left corner of the screen. For a child window, it's relative to the upper-left corner of the parent window's client area.
Public methodMove(Int32, Int32, Int32, Int32, Boolean)
Changes the position and dimensions of this window. For a top-level window, the position and dimensions are relative to the upper-left corner of the screen. For a child window, they are relative to the upper-left corner of the parent window's client area.
Public methodPhysicalToLogicalPoint
Converts the physical coordinates of a point in a window to logical coordinates.
Public methodPostMessage(Int32)
Places (posts) a message in the message queue associated with the thread that created this window and returns without waiting for the thread to process the message.
Public methodPostMessage(Int32, IntPtr)
Places (posts) a message in the message queue associated with the thread that created this window and returns without waiting for the thread to process the message.
Public methodPostMessage(Int32, IntPtr, IntPtr)
Places (posts) a message in the message queue associated with the thread that created this window and returns without waiting for the thread to process the message.
Public methodRedrawWindow(RDW)
Updates the entire client area of this window.
Public methodRedrawWindow(IntPtr, RDW)
Updates the region in this window's client area.
Public methodRedrawWindow(RECT, RDW)
Updates the specified rectangle in this window's client area.
Public methodReleaseDC
Releases a device context (DC), freeing it for use by other applications. The effect of the ReleaseDC function depends on the type of DC. It frees only common and window DCs. It has no effect on class or private DCs.
Public methodRemoveProperty
Removes an entry from the property list of this window.
Public methodResize
Changes the dimensions of this window. For a top-level window, the dimensions are relative to the upper-left corner of the screen. For a child window, they are relative to the upper-left corner of the parent window's client area.
Public methodScreenToClient
Converts the screen coordinates of a specified point on the screen to client-area coordinates.
Public methodSendMessage(Int32)
Sends the specified message to this window. The SendMessage function calls the window procedure for this window and does not return until the window procedure has processed the message.
Public methodSendMessage(Int32, IntPtr)
Sends the specified message to this window. The SendMessage function calls the window procedure for this window and does not return until the window procedure has processed the message.
Public methodSendMessage(Int32, IntPtr, IntPtr)
Sends the specified message to this window. The SendMessage function calls the window procedure for this window and does not return until the window procedure has processed the message.
Public methodSetActive
Activates a window. The window must be attached to the calling thread's message queue.
Public methodSetFocus
Sets the keyboard focus to this window. The window must be attached to the calling thread's message queue.
Public methodSetForeground
Brings the thread that created this window into the foreground and activates this 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.
Public methodSetLong
Changes an attribute of this window. The function also sets a value at the specified offset in the extra window memory.
Public methodSetParent
Changes the parent window of this window.
Public methodSetProperty
Adds a new entry or changes an existing entry in the property list of the specified window. The function adds a new entry to the list if the specified character string does not exist already in the list. The new entry contains the string and the handle. Otherwise, the function replaces the string's current handle with the specified handle.
Public methodSetWindowPos
Changes the size, position, and Z order of this 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.
Public methodShow
Sets this window's show state.
Public methodShowAsync
Sets the show state of a window without waiting for the operation to complete.
Public methodSwitchTo
Switches focus to this window and brings it to the foreground. This function is not intended for general use. It may be altered or unavailable in subsequent versions of Windows.
Public methodToString
Converts to string.
(Overrides ObjectToString.)
Public methodUpdate
updates the client area of this window by sending a WM_PAINT message to the window if the window's update region is not empty. The function sends a WM_PAINT message directly to the window procedure of this window, bypassing the application queue. If the update region is empty, no message is sent.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the == operator.
Public operatorStatic memberInequality
Implements the != operator.
Top
See Also