Commit cb17a57b 熊本熊kumamon

修正 tabcontrolext 在form1上放一个选项卡,复制粘贴到form2上,会立刻报错

1 个父辈 00878621
......@@ -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!