User32DrawEdge(IntPtr, Rectangle, DrawEdgeType, DrawEdgeFlags) Method
Draws a 3D edge or flat border on the specified 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("User32.dll", SetLastError = true)]
public static bool DrawEdge(
IntPtr hdc,
ref Rectangle refRect,
DrawEdgeType edge,
DrawEdgeFlags flags
)
<DllImportAttribute("User32.dll", SetLastError := true>]
Public Shared Function DrawEdge (
hdc As IntPtr,
ByRef refRect As Rectangle,
edge As DrawEdgeType,
flags As DrawEdgeFlags
) As Boolean
Dim hdc As IntPtr
Dim refRect As Rectangle
Dim edge As DrawEdgeType
Dim flags As DrawEdgeFlags
Dim returnValue As Boolean
returnValue = User32.DrawEdge(hdc,
refRect, edge, flags)
public:
[DllImportAttribute(L"User32.dll", SetLastError = true)]
static bool DrawEdge(
IntPtr hdc,
Rectangle% refRect,
DrawEdgeType edge,
DrawEdgeFlags flags
)
[<DllImportAttribute("User32.dll", SetLastError = true)>]
static member DrawEdge :
hdc : IntPtr *
refRect : Rectangle byref *
edge : DrawEdgeType *
flags : DrawEdgeFlags -> bool
No code example is currently available or this language may not be supported.
- hdc IntPtr
-
A handle to the device context where the border is drawn.
- refRect Rectangle
-
A NativeRectangle structure that specifies the area for the border.
- edge DrawEdgeType
-
The type of inner and outer edges to draw.
- flags DrawEdgeFlags
-
Flags that specify the border's behavior.
BooleanTrue if the function succeeds,
False otherwise.