Author: jpobst
Date: 2008-01-21 19:45:47 -0500 (Mon, 21 Jan 2008)
New Revision: 93463
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Hwnd.cs
Log:
2008-01-21 Jonathan Pobst <[EMAIL PROTECTED]>
* Hwnd.cs: Create a public property for the Graphics we keep around.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-01-21 23:59:45 UTC (rev 93462)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-01-22 00:45:47 UTC (rev 93463)
@@ -1,3 +1,7 @@
+2008-01-21 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * Hwnd.cs: Create a public property for the Graphics we keep around.
+
2008-01-21 Ivan N. Zlatev <[EMAIL PROTECTED]>
* PropertyGridView.cs: Just hide the grid textbox and do nothing more
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Hwnd.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Hwnd.cs
2008-01-21 23:59:45 UTC (rev 93462)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Hwnd.cs
2008-01-22 00:45:47 UTC (rev 93463)
@@ -373,6 +373,17 @@
return rect;
}
+
+ public static Graphics GraphicsContext {
+ get {
+ if (bmp_g == null) {
+ bmp = new Bitmap (1, 1,
System.Drawing.Imaging.PixelFormat.Format32bppArgb);
+ bmp_g = Graphics.FromImage (bmp);
+ }
+
+ return bmp_g;
+ }
+ }
#endregion // Static Methods
#region Instance Properties
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches