public PaintContextTestControl()
        {
            this.Stopwatch = new Stopwatch();
            System.Windows.Forms.ControlStyles controlStyle =
                System.Windows.Forms.ControlStyles.UserPaint
                | System.Windows.Forms.ControlStyles.AllPaintingInWmPaint
                | System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer;

            //if (Opaque) {
            //    controlStyle = controlStyle | ControlStyles.Opaque;
            //}

            this.SetStyle(controlStyle, true);
            this.TestCase = PaintContextTestCase.AwesomeIcons;
        }
示例#2
0
 protected bool GetStyle(System.Windows.Forms.ControlStyles flag);
示例#3
0
 protected void SetStyle(System.Windows.Forms.ControlStyles flag, bool value);