Commit 136d2ef4 冰封一夏 Gitee 提交于

!9 tabcontrolext 在不同窗体间复制粘贴会抛出例外

Merge pull request !9 from 熊本熊kumamon/master
2 个父辈 00878621 cb17a57b
......@@ -272,6 +272,7 @@ namespace HZH_Controls.Controls
private void PaintTabBackground(System.Drawing.Graphics graph, int index, System.Drawing.Drawing2D.GraphicsPath path)
{
Rectangle rect = this.GetTabRect(index);
if (rect.Width == 0 || rect.Height == 0) return;
System.Drawing.Brush buttonBrush = new System.Drawing.Drawing2D.LinearGradientBrush(rect, _headerBackColor, _headerBackColor, LinearGradientMode.Vertical); //非选中时候的 TabPage 页头部背景色
graph.FillPath(buttonBrush, path);
//if (index == this.SelectedIndex)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!