Skip to content

Commit 3b11830

Browse files
Fix the StatusStripSizingGrip.
1 parent 7e2d614 commit 3b11830

File tree

4 files changed

+344
-308
lines changed

4 files changed

+344
-308
lines changed

src/System.Windows.Forms/System/Windows/Forms/Controls/ToolStrips/ToolStrip.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3636,6 +3636,7 @@ protected override void OnPaintBackground(PaintEventArgs e)
36363636

36373637
Graphics g = e.GraphicsInternal;
36383638
GraphicsState graphicsState = g.Save();
3639+
36393640
try
36403641
{
36413642
using (Region? transparentRegion = Renderer.GetTransparentRegion(this))
@@ -3647,6 +3648,12 @@ protected override void OnPaintBackground(PaintEventArgs e)
36473648
}
36483649
}
36493650

3651+
if (Renderer.RendererOverride is ToolStripRenderer renderer)
3652+
{
3653+
renderer.DrawToolStripBackground(new ToolStripRenderEventArgs(g, this));
3654+
return;
3655+
}
3656+
36503657
Renderer.DrawToolStripBackground(new ToolStripRenderEventArgs(g, this));
36513658
}
36523659
finally

0 commit comments

Comments
 (0)