Source/ExplorerBarGroupItem.cs
(开头部分) 72KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Drawing;
using System.Drawing.Design;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Windows.Forms;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents the Explorer-Bar Group item.
/// </summary>
[System.ComponentModel.ToolboxItem(false),Designer(typeof(Design.ExplorerBarGroupItemDesigner))]
public class ExplorerBarGroupItem:ImageItem,IDesignTimeProvider
{
#region Private Variables
private Rectangle m_ExpandButtonRect=Rectangle.Empty;
private bool m_ExpandButtonHot=false;
private int m_Margin=2;
private bool m_MouseOver=false;
private bool m_MouseDown=false;
private Rectangle m_PanelRect=Rectangle.Empty;
private ItemStyleMapper m_HeaderStyle=null;
private ItemStyleMapper m_HeaderHotStyle=null;
private ItemStyleMapper m_BackgroundStyle=null;
private ElementStyle m_TitleStyle = null;
private ElementStyle m_TitleHotStyle = null;
private ElementStyle m_BackStyle = null;
private eExplorerBarStockStyle m_StockStyle=eExplorerBarStockStyle.Custom;
private bool m_ExpandButtonVisible=true;
//private eBarImageSize m_ItemImageSize=eBarImageSize.Default;
private System.Drawing.Point m_MouseDownPt;
// Used to host items that have windows associated with them....
//private ExplorerBarPanelControlHost m_ControlHost=null;
private const int EXPAND_MARGIN=25;
private System.Drawing.Image m_Image=null;
private int m_ImageIndex=-1; // Image index if image from ImageList is used
private System.Drawing.Image m_ImageCachedIdx=null;
private int m_SubItemsMargin=4;
private bool m_XPSpecialGroup=false;
// Expand Button Colors
private Color m_ExpandBorderColor=Color.DarkGray;
private Color m_ExpandBackColor=Color.White;
private Color m_ExpandForeColor=SystemColors.ActiveCaption;
private Color m_ExpandHotBorderColor=Color.DarkGray;
private Color m_ExpandHotBackColor=Color.White;
private Color m_ExpandHotForeColor=SystemColors.ActiveCaption;
private bool m_HeaderExpands=true;
private bool m_WordWrapSubItems=true;
后面还有 1962 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。