void NotifyChevronPushed(ref Message m) { NMREBARCHEVRON nrch = (NMREBARCHEVRON) m.GetLParam(typeof(NMREBARCHEVRON)); REBARBANDINFO rb; int bandIndex = nrch.uBand; rb = GetRebarInfo(bandIndex); int actualIndex = rb.wID; Control band = (Control)bands[actualIndex]; Point point = new Point(nrch.rc.left, nrch.rc.bottom); (band as IChevron).Show(this, point); }
private void NotifyChevronPushed(ref Message message) { NMREBARCHEVRON nrch = (NMREBARCHEVRON)message.GetLParam( typeof(NMREBARCHEVRON)); int index = nrch.wID; if ((index >= 0) && (index < this._bands.Count) && (this._bands[index] != null)) { Rectangle chevron_rc = new Rectangle( nrch.rc.left, nrch.rc.top, nrch.rc.right - nrch.rc.left, nrch.rc.bottom - nrch.rc.top); int chevron_width = chevron_rc.Width; if (CHEVRON_WIDTH != chevron_width) { CHEVRON_WIDTH = chevron_width; } this._bands[index].Show(this, chevron_rc); } }