User32ExcludeUpdateRgn(IntPtr, SafeHandle) Method
prevents drawing within invalid areas of a window by excluding an updated region in the window from a clipping region.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function ExcludeUpdateRgn (
hDC As IntPtr,
hWnd As SafeHandle
) As RegionComplexity
Dim hDC As IntPtr
Dim hWnd As SafeHandle
Dim returnValue As RegionComplexity
returnValue = User32.ExcludeUpdateRgn(hDC,
hWnd)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static RegionComplexity ExcludeUpdateRgn(
IntPtr hDC,
SafeHandle^ hWnd
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member ExcludeUpdateRgn :
hDC : IntPtr *
hWnd : SafeHandle -> RegionComplexity
No code example is currently available or this language may not be supported.
- hDC IntPtr
-
A handle to the device context associated with the clipping region.
- hWnd SafeHandle
-
A handle to the window to update.
RegionComplexity
The return value specifies the complexity of the excluded region.
To get extended error information, call
GetLastWin32Error.