Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / CreateParams.cs / 1 / CreateParams.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Diagnostics;
using System.Text;
using System;
///
///
/// [To be supplied.]
///
public class CreateParams {
string className;
string caption;
int style;
int exStyle;
int classStyle;
int x;
int y;
int width;
int height;
IntPtr parent;
object param;
///
///
/// Name of the window class to subclass. The default value for this field
/// is null, indicating that the window is not a subclass of an existing
/// window class. To subclass an existing window class, store the window
/// class name in this field. For example, to subclass the standard edit
/// control, set this field to "EDIT".
///
public string ClassName {
get { return className; }
set { className = value; }
}
///
///
/// The initial caption your control will have.
///
public string Caption {
get { return caption; }
set { caption = value; }
}
///
///
/// Window style bits. This must be a combination of WS_XXX style flags and
/// other control-specific style flags.
///
public int Style {
get { return style; }
set { style = value; }
}
///
///
/// Extended window style bits. This must be a combination of WS_EX_XXX
/// style flags.
///
public int ExStyle {
get { return exStyle; }
set { exStyle = value; }
}
///
///
/// Class style bits. This must be a combination of CS_XXX style flags. This
/// field is ignored if the className field is not null.
///
public int ClassStyle {
get { return classStyle; }
set { classStyle = value; }
}
///
///
/// The left portion of the initial proposed location.
///
public int X {
get { return x; }
set { x = value; }
}
///
///
/// The top portion of the initial proposed location.
///
public int Y {
get { return y; }
set { y = value; }
}
///
///
/// The initially proposed width.
///
public int Width {
get { return width; }
set { width = value; }
}
///
///
/// The initially proposed height.
///
public int Height {
get { return height; }
set { height = value; }
}
///
///
/// The controls parent.
///
public IntPtr Parent {
get { return parent; }
set { parent = value; }
}
///
///
/// Any extra information that the underlying handle might want.
///
public object Param {
get { return param; }
set { param = value; }
}
///
///
/// [To be supplied.]
///
public override string ToString() {
StringBuilder sb = new StringBuilder(64);
sb.Append("CreateParams {'");
sb.Append(className);
sb.Append("', '");
sb.Append(caption);
sb.Append("', 0x");
sb.Append(Convert.ToString(style, 16));
sb.Append(", 0x");
sb.Append(Convert.ToString(exStyle, 16));
sb.Append(", {");
sb.Append(x);
sb.Append(", ");
sb.Append(y);
sb.Append(", ");
sb.Append(width);
sb.Append(", ");
sb.Append(height);
sb.Append("}");
sb.Append("}");
return sb.ToString();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MimeFormatExtensions.cs
- RecognizedAudio.cs
- LineBreak.cs
- RuntimeConfig.cs
- ViewCellSlot.cs
- AnimatedTypeHelpers.cs
- FormViewUpdatedEventArgs.cs
- Application.cs
- AsyncOperationContext.cs
- LambdaCompiler.cs
- TextWriterEngine.cs
- EmptyStringExpandableObjectConverter.cs
- Parameter.cs
- Int64Storage.cs
- TailPinnedEventArgs.cs
- Thickness.cs
- SoapProtocolImporter.cs
- DesignerAttribute.cs
- IndexedString.cs
- WebControlsSection.cs
- BulletDecorator.cs
- WebResourceAttribute.cs
- SystemIPInterfaceStatistics.cs
- ToolStripComboBox.cs
- ObjectQueryExecutionPlan.cs
- XmlLanguageConverter.cs
- SQLBytes.cs
- GeneralTransformCollection.cs
- DataPagerFieldCommandEventArgs.cs
- PolicyConversionContext.cs
- CodeIdentifier.cs
- RegexCode.cs
- PerformanceCounterPermission.cs
- StateBag.cs
- FunctionImportElement.cs
- MarshalByValueComponent.cs
- Underline.cs
- TypedElement.cs
- PropertyChangingEventArgs.cs
- PropertyChangedEventManager.cs
- InvalidCastException.cs
- RadioButtonPopupAdapter.cs
- Object.cs
- NumberFormatter.cs
- DataGridViewComboBoxCell.cs
- AddDataControlFieldDialog.cs
- ToolboxItemCollection.cs
- AlternateView.cs
- CompareValidator.cs
- Registry.cs
- ReadOnlyMetadataCollection.cs
- ConnectionPoolManager.cs
- ColorConverter.cs
- SoapIncludeAttribute.cs
- XmlBindingWorker.cs
- SHA256.cs
- InstanceNotReadyException.cs
- EUCJPEncoding.cs
- WpfWebRequestHelper.cs
- XmlEventCache.cs
- OleDbParameterCollection.cs
- Metafile.cs
- SqlTypeConverter.cs
- PrePostDescendentsWalker.cs
- BitmapEffectInputConnector.cs
- ImageUrlEditor.cs
- X509SubjectKeyIdentifierClause.cs
- StatusStrip.cs
- BookmarkScopeInfo.cs
- ComboBoxDesigner.cs
- ColorConverter.cs
- NameHandler.cs
- CollectionContainer.cs
- RecommendedAsConfigurableAttribute.cs
- WebZone.cs
- RuntimeEnvironment.cs
- SelectionEditor.cs
- StaticDataManager.cs
- XmlHierarchicalEnumerable.cs
- SimpleApplicationHost.cs
- HtmlTable.cs
- GenericIdentity.cs
- WindowsGraphicsWrapper.cs
- CustomCategoryAttribute.cs
- TraceContext.cs
- WsdlInspector.cs
- ResourceContainer.cs
- WindowsAuthenticationModule.cs
- ObjectItemNoOpAssemblyLoader.cs
- StorageScalarPropertyMapping.cs
- AttachedPropertiesService.cs
- ProfileSettings.cs
- TextBreakpoint.cs
- ToolStripPanelCell.cs
- CellTreeNode.cs
- Visual3D.cs
- LinqToSqlWrapper.cs
- ArgumentDirectionHelper.cs
- MetadataItem_Static.cs
- AttachedPropertyBrowsableForTypeAttribute.cs