Win32Window Methods |
The Win32Window type exposes the following members.
Name | Description | |
---|---|---|
BringToTop |
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.
| |
Center |
Centers this window relatively to the screen.
| |
Center(IntPtr) |
Centers this window relatively to another window, or to the screen.
| |
ClientToScreen |
converts the client-area coordinates of a specified point to screen coordinates.
| |
Close |
Closes this window.
| |
Destroy |
Destroys this window.
| |
Disable |
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.
| |
Enable |
Enables mouse and keyboard input to this window or control.
When input is enabled, the window receives all input.
| |
Equals(Object) |
Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object).) | |
Equals(Win32Window) |
Indicates whether the current object is equal to another object of the same type.
| |
ExecuteWithDC(ActionIntPtr) |
Executes the specified action with a device context (DC).
| |
ExecuteWithDCT(FuncIntPtr, T) |
Executes the specified function with a device context (DC).
| |
FromDC |
Gets the window associated with the specified display device context (DC).
| |
FromHandle |
Returns a Win32Window instance from a handle, or null if the handle doesn't identify an existing window.
| |
FromPhysicalPoint |
Get the window that contains the specified physical point.
| |
FromPoint |
Gets the window that contains the specified point.
| |
FromProcess(Int32) |
Get a list of windows owned by the specified process.
| |
FromProcess(Process) |
Get a list of windows owned by the specified process.
| |
GetChildWindowFromPoint |
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.
| |
GetDC |
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
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.) | |
GetLong |
Retrieves information about this window.
The function also retrieves the value at a specified offset into the extra window memory.
| |
GetProperty |
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.
| |
Hide |
Hides the window and activates another window.
| |
HideAsync |
Hides the window and activates another window without waiting for the operation to complete.
| |
Invalidate |
Invalidates this window's client area.
| |
InvalidateRect |
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.
| |
InvalidateRgn |
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.
| |
IsChildOf |
Determines whether this window is a child or grand child of the specified parent window.
| |
IsEnabled |
Determines whether the specified window is enabled for mouse and keyboard input.
| |
IsParentOf |
Determines whether this window is a parent or grand parent of the specified child window.
| |
LogicalToPhysicalPoint |
Converts the logical coordinates of a point in a window to physical coordinates.
| |
MapPoints |
Converts (maps) a set of points from a coordinate space relative to this window to a coordinate space relative to another window.
| |
Move(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.
| |
Move(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.
| |
PhysicalToLogicalPoint |
Converts the physical coordinates of a point in a window to logical coordinates.
| |
PostMessage(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.
| |
PostMessage(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.
| |
PostMessage(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.
| |
RedrawWindow(RDW) |
Updates the entire client area of this window.
| |
RedrawWindow(IntPtr, RDW) |
Updates the region in this window's client area.
| |
RedrawWindow(RECT, RDW) |
Updates the specified rectangle in this window's client area.
| |
ReleaseDC |
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.
| |
RemoveProperty |
Removes an entry from the property list of this window.
| |
Resize |
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.
| |
ScreenToClient |
Converts the screen coordinates of a specified point on the screen to client-area coordinates.
| |
SendMessage(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.
| |
SendMessage(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.
| |
SendMessage(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.
| |
SetActive |
Activates a window.
The window must be attached to the calling thread's message queue.
| |
SetFocus |
Sets the keyboard focus to this window. The window must be attached to the calling thread's message queue.
| |
SetForeground |
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.
| |
SetLong |
Changes an attribute of this window.
The function also sets a value at the specified offset in the extra window memory.
| |
SetParent |
Changes the parent window of this window.
| |
SetProperty |
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.
| |
SetWindowPos |
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.
| |
Show |
Sets this window's show state.
| |
ShowAsync |
Sets the show state of a window without waiting for the operation to complete.
| |
SwitchTo |
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.
| |
ToString |
Converts to string.
(Overrides ObjectToString.) | |
Update |
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.
|