User32ExcludeUpdateRgn(IntPtr, SafeHandle) Method

prevents drawing within invalid areas of a window by excluding an updated region in the window from a clipping region.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static RegionComplexity ExcludeUpdateRgn(
	IntPtr hDC,
	SafeHandle hWnd
)

Parameters

hDC  IntPtr
A handle to the device context associated with the clipping region.
hWnd  SafeHandle
A handle to the window to update.

Return Value

RegionComplexity
The return value specifies the complexity of the excluded region.

To get extended error information, call GetLastWin32Error.

Remarks

See Also