Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / CreateParams.cs / 1305376 / 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlTextReader.cs
- ImageButton.cs
- PrimaryKeyTypeConverter.cs
- Parameter.cs
- GenerateTemporaryTargetAssembly.cs
- CallId.cs
- ModifiableIteratorCollection.cs
- ZoomPercentageConverter.cs
- SingleAnimationBase.cs
- FileAuthorizationModule.cs
- MultiPageTextView.cs
- XmlSubtreeReader.cs
- SmiEventSink.cs
- RedistVersionInfo.cs
- PersonalizationStateInfoCollection.cs
- ProjectionCamera.cs
- ParagraphResult.cs
- ImageAutomationPeer.cs
- TemplateControlCodeDomTreeGenerator.cs
- JournalNavigationScope.cs
- X509ClientCertificateAuthentication.cs
- SimpleRecyclingCache.cs
- MembershipSection.cs
- DataGridViewCellLinkedList.cs
- XmlLangPropertyAttribute.cs
- DesignerVerbToolStripMenuItem.cs
- DesignerVerbCollection.cs
- QueryConverter.cs
- ComplexPropertyEntry.cs
- JavaScriptObjectDeserializer.cs
- ActiveXSite.cs
- PersonalizationState.cs
- AsyncPostBackErrorEventArgs.cs
- PathFigureCollection.cs
- CollectionViewSource.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ToolboxCategory.cs
- CroppedBitmap.cs
- DBAsyncResult.cs
- CommonBehaviorsSection.cs
- MessageAction.cs
- _NestedMultipleAsyncResult.cs
- UserThread.cs
- RoutedEventValueSerializer.cs
- Int32KeyFrameCollection.cs
- AdornerHitTestResult.cs
- Stack.cs
- LostFocusEventManager.cs
- EncoderNLS.cs
- MatrixTransform3D.cs
- ToolBarButtonClickEvent.cs
- FeatureSupport.cs
- SizeIndependentAnimationStorage.cs
- AttributeCollection.cs
- AttributedMetaModel.cs
- Rect.cs
- LogRestartAreaEnumerator.cs
- CompoundFileDeflateTransform.cs
- TreeWalker.cs
- SimpleWebHandlerParser.cs
- DataProviderNameConverter.cs
- LicenseProviderAttribute.cs
- XmlBufferReader.cs
- RawAppCommandInputReport.cs
- MouseActionValueSerializer.cs
- MarkerProperties.cs
- uribuilder.cs
- HttpRequestTraceRecord.cs
- MetadataArtifactLoaderResource.cs
- TextEditorTables.cs
- DecimalMinMaxAggregationOperator.cs
- BrowserTree.cs
- _OverlappedAsyncResult.cs
- SettingsAttributeDictionary.cs
- UserNameSecurityTokenAuthenticator.cs
- XmlCharCheckingReader.cs
- SafeMarshalContext.cs
- AddInSegmentDirectoryNotFoundException.cs
- AspNetHostingPermission.cs
- SiteMapProvider.cs
- ScrollPatternIdentifiers.cs
- SchemaMapping.cs
- PersonalizationProviderHelper.cs
- TileBrush.cs
- IDataContractSurrogate.cs
- ProviderCommandInfoUtils.cs
- SerializationHelper.cs
- RawStylusSystemGestureInputReport.cs
- SoapHelper.cs
- ActivityXamlServices.cs
- XmlProcessingInstruction.cs
- Environment.cs
- SynchronizationContext.cs
- ExtensionMethods.cs
- BinHexDecoder.cs
- Stack.cs
- ToggleButton.cs
- AttributeCollection.cs
- PropertyToken.cs
- DelegateSerializationHolder.cs