Click or drag to resize

Win32Window Methods

The Win32Window type exposes the following members.

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
See Also