protected override void OnPaintBackground (PaintEventArgs e)
{
Rectangle affected_bounds = new Rectangle (Point.Empty, this.Size);
ToolStripRenderEventArgs tsrea = new ToolStripRenderEventArgs (e.Graphics, this, affected_bounds, SystemColors.Control);
tsrea.InternalConnectedArea = CalculateConnectedArea ();
this.Renderer.DrawToolStripBackground (tsrea);
if (this.ShowCheckMargin || this.ShowImageMargin) {
tsrea = new ToolStripRenderEventArgs (e.Graphics, this, new Rectangle (tsrea.AffectedBounds.Location, new Size (25, tsrea.AffectedBounds.Height)), SystemColors.Control);
this.Renderer.DrawImageMargin (tsrea);
}
}
/*