BCGControlBar Library for .NET
OnDrawCaption Method (CommandBar)




The graphics to draw on.
The boundaries of the caption to draw.
Specifies whether the floating CommandBar is active.
Called when the caption of the CommandBar is drawn.
Syntax
'Declaration
 
Public Overridable Function OnDrawCaption( _
   ByVal graphics As Graphics, _
   ByVal rectCaption As Rectangle, _
   ByVal bIsActive As Boolean _
) As Color
'Usage
 
Dim instance As CommandBar
Dim graphics As Graphics
Dim rectCaption As Rectangle
Dim bIsActive As Boolean
Dim value As Color
 
value = instance.OnDrawCaption(graphics, rectCaption, bIsActive)
public virtual Color OnDrawCaption( 
   Graphics graphics,
   Rectangle rectCaption,
   bool bIsActive
)
public: virtual Color OnDrawCaption( 
   Graphics* graphics,
   Rectangle rectCaption,
   bool bIsActive
) 
public:
virtual Color OnDrawCaption( 
   Graphics^ graphics,
   Rectangle rectCaption,
   bool bIsActive
) 

Parameters

graphics
The graphics to draw on.
rectCaption
The boundaries of the caption to draw.
bIsActive
Specifies whether the floating CommandBar is active.

Return Value

The color of the text on the caption.
Requirements

Target Platforms: 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

Reference

CommandBar Class
CommandBar Members

Send Feedback