Version

DrawWindowFrame Method

Renders a themed window frame area.
Syntax
'Declaration
 
Public Function DrawWindowFrame( _
   ByVal smallCaption As Boolean, _
   ByVal framePart As ThemedWindow.FramePart, _
   ByVal active As Boolean, _
   ByRef drawParams As UIElementDrawParams, _
   ByVal rect As Rectangle, _
   ByVal clipRect As Rectangle _
) As Boolean
public bool DrawWindowFrame( 
   bool smallCaption,
   ThemedWindow.FramePart framePart,
   bool active,
   ref UIElementDrawParams drawParams,
   Rectangle rect,
   Rectangle clipRect
)

Parameters

smallCaption
True if this is the frame for a small caption window - e.g. ToolWindow.
framePart
Which area of the frame to render.
active
True if the frame is for an active window.
drawParams
The UIElementDrawParams used to provide rendering information.
rect
Rectangle of the frame element.
clipRect
Clip rectangle

Return Value

A boolean indicating if the themed element was rendered.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also