Source/AutoHidePanel.cs
(开头部分) 45KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
using System.Drawing.Text;
namespace DevComponents.DotNetBar
{
[System.ComponentModel.ToolboxItem(false),System.ComponentModel.DesignTimeVisible(false),System.Runtime.InteropServices.ComVisible(false)]
public class AutoHidePanel : System.Windows.Forms.Control
{
private ArrayList m_Panels=new ArrayList(10);
private System.Windows.Forms.Timer m_Timer=null;
private eDotNetBarStyle m_Style=eDotNetBarStyle.OfficeXP;
private bool m_EnableHoverExpand=true;
private bool m_EnableFocusCollapse=true;
private int m_AutoHideShowTimeout=800;
private ColorScheme m_ColorScheme=null;
private DotNetBarManager m_Owner=null;
public AutoHidePanel()
{
this.SetStyle(ControlStyles.Selectable,false);
this.SetStyle(ControlStyles.UserPaint,true);
this.SetStyle(ControlStyles.Opaque,true);
this.SetStyle(DisplayHelp.DoubleBufferFlag,true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint,true);
this.SetStyle(ControlStyles.ResizeRedraw,true);
this.Font = SystemInformation.MenuFont.Clone() as Font;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if(disposing)
{
DestroyTimer();
foreach(PanelBar panel in m_Panels)
{
panel.Dispose();
}
m_Panels.Clear();
}
base.Dispose( disposing );
}
internal void SetOwner(DotNetBarManager owner)
{
m_Owner=owner;
}
private bool m_AntiAlias = false;
/// <summary>
后面还有 1377 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。