internal void DestroyBand() { if (Created) { User32Dll.SendMessage(_bands.Rebar.RebarHwnd, (int)WindowsMessages.RB_DELETEBAND, (uint)BandIndex, 0U); _bands = null; _created = false; } }
/* public event RebarEventHandler AddBand; public event RebarEventHandler RemoveBand; */ public RebarWrapper() { SetStyle(ControlStyles.StandardClick, true); SetStyle(ControlStyles.StandardDoubleClick,true); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); //SetStyle(ControlStyles.ResizeRedraw, true); _embossHighlight = SystemColors.ControlLightLight; _embossShadow = SystemColors.ControlDarkDark; _bands = new BandCollection(this); // This call is required by the Windows.Forms Form Designer. InitializeComponent(); }
/* * public event RebarEventHandler AddBand; * public event RebarEventHandler RemoveBand; */ public RebarWrapper() { SetStyle(ControlStyles.StandardClick, true); SetStyle(ControlStyles.StandardDoubleClick, true); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); //SetStyle(ControlStyles.ResizeRedraw, true); _embossHighlight = SystemColors.ControlLightLight; _embossShadow = SystemColors.ControlDarkDark; _bands = new BandCollection(this); // This call is required by the Windows.Forms Form Designer. InitializeComponent(); }
public BandEnumerator(BandCollection Bands) { Collection = Bands; Index = -1; }
internal void DestroyBand() { if(Created) { User32Dll.SendMessage(_bands.Rebar.RebarHwnd, (int)WindowsMessages.RB_DELETEBAND, (uint)BandIndex, 0U); _bands = null; _created = false; } }