User32DrawFrameControl(IntPtr, Rectangle, DrawFrameControlType, DrawFrameControlScrollFlags) Method

Draws a frame control of the specified type and style on the specified device context for a button.

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 bool DrawFrameControl(
	IntPtr hdc,
	ref Rectangle refRect,
	DrawFrameControlType type,
	DrawFrameControlScrollFlags scrollFlags
)

Parameters

hdc  IntPtr
A handle to the device context where the frame control is drawn.
refRect  Rectangle
A rectangle structure that specifies the area for the frame control.
type  DrawFrameControlType
The type of frame control to draw.
scrollFlags  DrawFrameControlScrollFlags
When type parameter is ScrollBar, specifies the type of scroll bar frame control to draw.

Return Value

Boolean
True if the function succeeds, False otherwise.

Remarks

See Also