User32DrawFrameControl(IntPtr, Rectangle, DrawFrameControlType, DrawFrameControlMenuType) 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,
	DrawFrameControlMenuType menuType
)

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.
menuType  DrawFrameControlMenuType
When type parameter is Menu, specifies the type of menu frame control to draw.

Return Value

Boolean
True if the function succeeds, False otherwise.

Remarks

See Also