Пример #1
0
        public Rebar() {
            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 RebarBandCollection( this );
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

        }
Пример #2
0
 public BandEnumerator( RebarBandCollection Bands ) {
     Collection = Bands;
     Index = -1;
 }
Пример #3
0
 internal void DestroyBand() {
     if ( Created ) {
         win32.SendMessage( _bands.Rebar.RebarHwnd, (int)win32.RB_DELETEBAND, (uint)BandIndex, 0U );
         _bands = null;
         _created = false;
     }
 }