BCGControlBar Library for .NET
DrawMenuItem Method (ToolbarMenuButton)




The graphics to draw on.
The boundaries of the ToolbarMenuButton to draw on.
The image associated with the ToolbarMenuButton to draw.
Called by the framework to draw the ToolbarMenuButton in the popup menu.
Syntax
'Declaration
 
Public Overridable Sub DrawMenuItem( _
   ByVal graphics As Graphics, _
   ByVal rect As Rectangle, _
   ByVal image As Image _
) 
'Usage
 
Dim instance As ToolbarMenuButton
Dim graphics As Graphics
Dim rect As Rectangle
Dim image As Image
 
instance.DrawMenuItem(graphics, rect, image)
public virtual void DrawMenuItem( 
   Graphics graphics,
   Rectangle rect,
   Image image
)
public: virtual void DrawMenuItem( 
   Graphics* graphics,
   Rectangle rect,
   Image* image
) 
public:
virtual void DrawMenuItem( 
   Graphics^ graphics,
   Rectangle rect,
   Image^ image
) 

Parameters

graphics
The graphics to draw on.
rect
The boundaries of the ToolbarMenuButton to draw on.
image
The image associated with the ToolbarMenuButton to draw.
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

ToolbarMenuButton Class
ToolbarMenuButton Members

Send Feedback