------ #### RaUIV4 V4.0.2311.0701 - *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。 - *.[新增]新增ApkOp类,可以轻松获取APK信息。 - *.[新增]新增JsonExt扩展类,让Json操作更简单。 - *.[新增]新增WebP类,可以支持webp格式的图片。 - *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。 - *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using System.Diagnostics;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
using WeifenLuo.WinFormsUI.Docking;
|
|
|
|
namespace WeifenLuo.WinFormsUI.ThemeVS2013
|
|
{
|
|
internal class VS2013SplitterControl : DockPane.SplitterControlBase
|
|
{
|
|
private readonly SolidBrush _horizontalBrush;
|
|
private int SplitterSize { get; }
|
|
|
|
public VS2013SplitterControl(DockPane pane)
|
|
: base(pane)
|
|
{
|
|
_horizontalBrush = pane.DockPanel.Theme.PaintingService.GetBrush(pane.DockPanel.Theme.ColorPalette.MainWindowActive.Background);
|
|
SplitterSize = pane.DockPanel.Theme.Measures.SplitterSize;
|
|
}
|
|
|
|
protected override void OnPaint(PaintEventArgs e)
|
|
{
|
|
base.OnPaint(e);
|
|
|
|
Rectangle rect = ClientRectangle;
|
|
if (rect.Width <= 0 || rect.Height <= 0)
|
|
return;
|
|
|
|
switch (Alignment)
|
|
{
|
|
case DockAlignment.Right:
|
|
case DockAlignment.Left:
|
|
{
|
|
Debug.Assert(SplitterSize == rect.Width);
|
|
e.Graphics.FillRectangle(_horizontalBrush, rect);
|
|
}
|
|
break;
|
|
case DockAlignment.Bottom:
|
|
case DockAlignment.Top:
|
|
{
|
|
Debug.Assert(SplitterSize == rect.Height);
|
|
e.Graphics.FillRectangle(_horizontalBrush, rect);
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} |