BCGControlBar Library for .NET
OnCalcSeparatorRect Method (CommandBar)




A button which boundaries is a base for calculating the boundaries of the separator.
The boundaries of the separator to get.
The orientation of the command bar.
Called by the framework to calculate the boundaries of the separator.
Syntax
'Declaration
 
Public Overridable Sub OnCalcSeparatorRect( _
   ByVal button As ToolbarButton, _
   ByRef rectSeparator As Rectangle, _
   ByVal horz As Boolean _
) 
'Usage
 
Dim instance As CommandBar
Dim button As ToolbarButton
Dim rectSeparator As Rectangle
Dim horz As Boolean
 
instance.OnCalcSeparatorRect(button, rectSeparator, horz)
public virtual void OnCalcSeparatorRect( 
   ToolbarButton button,
   ref Rectangle rectSeparator,
   bool horz
)
public: virtual void OnCalcSeparatorRect( 
   ToolbarButton* button,
   ref Rectangle rectSeparator,
   bool horz
) 
public:
virtual void OnCalcSeparatorRect( 
   ToolbarButton^ button,
   Rectangle% rectSeparator,
   bool horz
) 

Parameters

button
A button which boundaries is a base for calculating the boundaries of the separator.
rectSeparator
The boundaries of the separator to get.
horz
The orientation of the command bar.
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