User32DrawFrameControl(IntPtr, Rectangle, DrawFrameControlType, DrawFrameControlCaptionType) 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,
	DrawFrameControlCaptionType captionType
)

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.
captionType  DrawFrameControlCaptionType
When type parameter is Caption or PopupMenu, specifies the type of caption frame control to draw.

Return Value

Boolean
True if the function succeeds, False otherwise.

Remarks

See Also