Source/Controls/DGVScrollBar.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
#if FRAMEWORK20
using System;
using System.Text;
using System.Windows.Forms;
using System.ComponentModel;
using System.Drawing;
namespace DevComponents.DotNetBar.Controls
{
/// <summary>
/// Represents the Vertical Office 2007 Style Scroll Bar control.
/// </summary>
internal class DGVScrollBar : VScrollBar, ScrollBarReplacement.IScrollBarExtender
{
#region Private Variables
private ScrollBarReplacement m_ScrollBarImpl = null;
private bool m_EnableStyling = true;
#endregion
#region Constructor
public DGVScrollBar()
{
m_ScrollBarImpl = new ScrollBarReplacement(this);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.Opaque, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(DisplayHelp.DoubleBufferFlag, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, false);
}
#endregion
#region Internal Implementation
protected override CreateParams CreateParams
{
get
{
CreateParams p = base.CreateParams;
if (m_EnableStyling)
{
p.ClassName = null;
p.Style = 0x2000000;
p.Style |= 0x44000000;
if (this.Visible)
p.Style |= 0x10000000;
if (!this.Enabled)
p.Style |= 0x8000000;
if (this.RightToLeft == RightToLeft.Yes)
{
p.ExStyle |= 0x2000;
p.ExStyle |= 0x1000;
p.ExStyle |= 0x4000;
}
}
return p;
}
}
protected override void Dispose(bool disposing)
{
后面还有 146 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。