System.Windows.Forms.ThemeWin32Classic.CPDrawGrabHandle C# (CSharp) Method

CPDrawGrabHandle() public method

public CPDrawGrabHandle ( Graphics graphics, Rectangle rectangle, bool primary, bool enabled ) : void
graphics System.Drawing.Graphics
rectangle System.Drawing.Rectangle
primary bool
enabled bool
return void
		public override void CPDrawGrabHandle (Graphics graphics, Rectangle rectangle, bool primary, bool enabled)
		{
			Brush	sb;
			Pen pen;
			
			if (primary == true) {
				pen = Pens.Black;
				if (enabled == true) {
					sb = Brushes.White;
				} else {
					sb = SystemBrushes.Control;
				}
			} else {
				pen = Pens.White;
				if (enabled == true) {
					sb = Brushes.Black;
				} else {
					sb = SystemBrushes.Control;
				}
			}
			graphics.FillRectangle (sb, rectangle);
			graphics.DrawRectangle (pen, rectangle);			
		}
ThemeWin32Classic