Gdi32RectVisible(SafeHandle, Rectangle) Method
Determines whether any part of the specified rectangle lies within the clipping region of a device context.
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("GDI32.dll", SetLastError = true)]
public static int RectVisible(
SafeHandle hdc,
in Rectangle refRect
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function RectVisible (
hdc As SafeHandle,
ByRef refRect As Rectangle
) As Integer
Dim hdc As SafeHandle
Dim refRect As Rectangle
Dim returnValue As Integer
returnValue = Gdi32.RectVisible(hdc,
refRect)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static int RectVisible(
SafeHandle^ hdc,
[InAttribute] Rectangle% refRect
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member RectVisible :
hdc : SafeHandle *
refRect : Rectangle byref -> int
No code example is currently available or this language may not be supported.
- hdc SafeHandle
-
A handle to the device context (DC).
- refRect Rectangle
-
A pointer to a Rectangle structure that contains the logical coordinates of the specified rectangle.
Int32
If the current transform does not have a rotation and the rectangle lies within the clipping region, the return value is
1.
If the current transform does not have a rotation and the rectangle does not lie within the clipping region, the return value is
0.
If the current transform has a rotation and the rectangle lies within the clipping region, the return value is
2.
If the current transform has a rotation and the rectangle does not lie within the clipping region, the return value is
1.