New test.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / CreateParams.cs
index 8899a934550e396e543ee351e0ecd2d4c0a70499..137ef905d66a6b4a468b12d09099d65dbcbd2fcd 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2006 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
@@ -43,6 +43,7 @@ namespace System.Windows.Forms {
                private int     style;
                private object  param;
                private IntPtr  parent;
+               internal Menu   menu;
                #endregion      // Local variables
 
                #region Public Constructors
@@ -109,13 +110,16 @@ namespace System.Windows.Forms {
 
                #region Public Instance Methods
                public override string ToString() {
-                       return "CreateParams; X=" + X.ToString() + 
-                               ", Y=" + Y.ToString() +
-                               ", Width=" + Width.ToString() +
-                               ", Height=" + Height.ToString() +
-                               ", Style=" + Style.ToString() +
-                               ", Parent=" + Parent.ToString();
-               }
+                       return "CreateParams {'" + class_name + 
+                               "', '" + caption + 
+                               "', " + String.Format("0x{0:X}", class_style) +
+                               ", " + String.Format("0x{0:X}", ex_style) +
+                               ", {" + String.Format("{0}", x) +
+                               ", " + String.Format("{0}", y) +
+                               ", " + String.Format("{0}", width) +
+                               ", " + String.Format("{0}", height) +
+                               "}}";
+               }
                #endregion      // Public Instance Methods
 
        }