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; }
protected bool GetStyle(System.Windows.Forms.ControlStyles flag);
protected void SetStyle(System.Windows.Forms.ControlStyles flag, bool value);