BCGControlBar Library for .NET
OnDrawButton Method




A graphics to draw on.

The bounding rectangle.

This function is called by the framework to draw a button contained in the property. Override it in a derived class to customize the button appearance.

Syntax
'Declaration
 
Public Overridable Sub OnDrawButton( _
   ByVal graphics As Graphics, _
   ByVal rectButton As Rectangle _
) 
'Usage
 
Dim instance As PropertyListItem
Dim graphics As Graphics
Dim rectButton As Rectangle
 
instance.OnDrawButton(graphics, rectButton)
public virtual void OnDrawButton( 
   Graphics graphics,
   Rectangle rectButton
)
public: virtual void OnDrawButton( 
   Graphics* graphics,
   Rectangle rectButton
) 
public:
virtual void OnDrawButton( 
   Graphics^ graphics,
   Rectangle rectButton
) 

Parameters

graphics
A graphics to draw on.
rectButton

The bounding rectangle.

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

PropertyListItem Class
PropertyListItem Members

Send Feedback