/// <include file='doc\ToolStripOverflowButton.uex' path='docs/doc[@for="ToolStripOverflowButton.OnPaint"]/*' />
 protected override void OnPaint(PaintEventArgs e)
 {
     if (this.ParentInternal != null)
     {
         ToolStripRenderer renderer = this.ParentInternal.Renderer;
         renderer.DrawOverflowButtonBackground(new ToolStripItemRenderEventArgs(e.Graphics, this));
     }
 }
示例#2
0
 protected override void OnRenderOverflowButtonBackground(System.Windows.Forms.ToolStripItemRenderEventArgs e)
 {
     if (currentRenderer != null)
     {
         currentRenderer.DrawOverflowButtonBackground(e);
         return;
     }
     base.OnRenderOverflowButtonBackground(e);
 }
示例#3
0
 protected override void OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs e)
 {
     if (_currentRenderer != null)
     {
         _currentRenderer.DrawOverflowButtonBackground(e);
     }
     else
     {
         base.OnRenderOverflowButtonBackground(e);
     }
 }
 protected override void OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs e)
 {
     renderer.DrawOverflowButtonBackground(e);
 }