111,086
社区成员




public Graphics Graphics
{
get
{
if ((this.graphics == null) && (this.dc != IntPtr.Zero))
{
this.oldPal = Control.SetUpPalette(this.dc, false, false);
this.graphics = Graphics.FromHdcInternal(this.dc);
this.graphics.PageUnit = GraphicsUnit.Pixel;
this.savedGraphicsState = this.graphics.Save();
}
return this.graphics;
}
}
PaintEventArgs pe = new PaintEventArgs(this.CreateGraphics(),this.ClientRectangle);
DrawRectangleInt(pe);