Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; ////// /// 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; ///[To be supplied.] ////// /// 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; } } ////// /// 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. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System.Text; using System; ////// /// 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; ///[To be supplied.] ////// /// 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; } } ////// /// 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.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Style.cs
- StringAnimationUsingKeyFrames.cs
- FontFamily.cs
- IPPacketInformation.cs
- DrawingCollection.cs
- SubclassTypeValidator.cs
- SqlDataSourceCache.cs
- handlecollector.cs
- Visual3D.cs
- URLBuilder.cs
- GiveFeedbackEventArgs.cs
- Registry.cs
- DecoderFallback.cs
- X509CertificateInitiatorClientCredential.cs
- DesignBinding.cs
- sqlcontext.cs
- FlowDocumentPageViewerAutomationPeer.cs
- RecipientInfo.cs
- SafeRightsManagementPubHandle.cs
- TemplateColumn.cs
- ImageCreator.cs
- BitmapInitialize.cs
- XsltArgumentList.cs
- PartitionedStreamMerger.cs
- BitmapCodecInfoInternal.cs
- MaterialCollection.cs
- Label.cs
- MarkupExtensionParser.cs
- DocumentEventArgs.cs
- DayRenderEvent.cs
- InputLanguageManager.cs
- SqlMethodCallConverter.cs
- SmtpReplyReaderFactory.cs
- DbConnectionPoolIdentity.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- XmlCharCheckingReader.cs
- PropertyCollection.cs
- ReadWriteObjectLock.cs
- Accessors.cs
- CallSiteHelpers.cs
- ContractHandle.cs
- Ops.cs
- DataGridViewCellLinkedList.cs
- AnnotationStore.cs
- AccessDataSourceView.cs
- FontWeights.cs
- RoleManagerModule.cs
- ConstraintCollection.cs
- UriSectionData.cs
- ObjectComplexPropertyMapping.cs
- GetPageCompletedEventArgs.cs
- MsmqInputChannelBase.cs
- CodeThrowExceptionStatement.cs
- DefaultProxySection.cs
- NoClickablePointException.cs
- WebPartConnectionsEventArgs.cs
- HealthMonitoringSectionHelper.cs
- Latin1Encoding.cs
- EventToken.cs
- TimestampInformation.cs
- SubstitutionList.cs
- MemberDescriptor.cs
- NoneExcludedImageIndexConverter.cs
- UmAlQuraCalendar.cs
- AncillaryOps.cs
- ApplicationHost.cs
- RenamedEventArgs.cs
- PreservationFileWriter.cs
- FontFamily.cs
- SpecialNameAttribute.cs
- XPathParser.cs
- DocumentCollection.cs
- CheckableControlBaseAdapter.cs
- CodePageEncoding.cs
- ExpressionPrinter.cs
- addressfiltermode.cs
- UnaryExpressionHelper.cs
- PublisherMembershipCondition.cs
- ConfigXmlSignificantWhitespace.cs
- DependsOnAttribute.cs
- ErrorsHelper.cs
- ComAwareEventInfo.cs
- AppDomainAttributes.cs
- EnterpriseServicesHelper.cs
- TextDecorationCollection.cs
- SqlNodeTypeOperators.cs
- TargetConverter.cs
- AddInStore.cs
- HtmlShim.cs
- BindingOperations.cs
- MembershipValidatePasswordEventArgs.cs
- Style.cs
- ResourcePermissionBaseEntry.cs
- Size.cs
- ZipIOFileItemStream.cs
- PathSegmentCollection.cs
- ObjectStateFormatter.cs
- HelpEvent.cs
- ListViewDesigner.cs
- IdentityModelDictionary.cs