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; ////// /// 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
- TextBoxBase.cs
- HttpSysSettings.cs
- FlowLayoutSettings.cs
- SQLBytesStorage.cs
- Variant.cs
- SpecialNameAttribute.cs
- NotifyCollectionChangedEventArgs.cs
- AuthorizationRule.cs
- Rect.cs
- CryptoConfig.cs
- XmlSchemaAppInfo.cs
- ToolStripLabel.cs
- TableAutomationPeer.cs
- FeedUtils.cs
- Encoder.cs
- TextElementCollection.cs
- MarkupObject.cs
- ImageSourceConverter.cs
- OptimizedTemplateContent.cs
- HtmlListAdapter.cs
- DeadCharTextComposition.cs
- RemoteWebConfigurationHostServer.cs
- EventListener.cs
- XmlSiteMapProvider.cs
- OperationAbortedException.cs
- IsolatedStorageFileStream.cs
- XmlElementAttributes.cs
- RuleEngine.cs
- HtmlControlDesigner.cs
- FileClassifier.cs
- MarkerProperties.cs
- StateWorkerRequest.cs
- DebugHandleTracker.cs
- Filter.cs
- SeparatorAutomationPeer.cs
- Figure.cs
- FixedPageAutomationPeer.cs
- SuspendDesigner.cs
- DataGridViewTextBoxColumn.cs
- Page.cs
- __TransparentProxy.cs
- XmlDataSource.cs
- InputProcessorProfilesLoader.cs
- ImageDrawing.cs
- AppDomainManager.cs
- ColorTransformHelper.cs
- FileLogRecord.cs
- SafeBitVector32.cs
- TagMapCollection.cs
- WebDisplayNameAttribute.cs
- OperatorExpressions.cs
- ResourcePermissionBase.cs
- Control.cs
- AudienceUriMode.cs
- MenuAutoFormat.cs
- ServiceNameElement.cs
- AmbientLight.cs
- ObjectQuery_EntitySqlExtensions.cs
- TextHidden.cs
- WindowsProgressbar.cs
- GrammarBuilderBase.cs
- SynchronizedChannelCollection.cs
- TagPrefixCollection.cs
- StatusBar.cs
- ProxyManager.cs
- WebPermission.cs
- Expressions.cs
- SynchronizationContext.cs
- HttpFileCollection.cs
- PackageRelationshipCollection.cs
- CodeLabeledStatement.cs
- StreamGeometry.cs
- LocalsItemDescription.cs
- BufferedStream.cs
- TextPenaltyModule.cs
- BinHexEncoder.cs
- DoubleUtil.cs
- QueryTreeBuilder.cs
- StringUtil.cs
- ConnectionProviderAttribute.cs
- Polyline.cs
- _Events.cs
- RequestResizeEvent.cs
- ConsoleTraceListener.cs
- XmlnsCompatibleWithAttribute.cs
- SchemeSettingElementCollection.cs
- DebuggerAttributes.cs
- UIElementPropertyUndoUnit.cs
- ToolBarOverflowPanel.cs
- NameValueConfigurationElement.cs
- BasicHttpBinding.cs
- PropertyChange.cs
- Collection.cs
- TypeCodeDomSerializer.cs
- ExclusiveHandleList.cs
- BamlResourceDeserializer.cs
- ZipIOModeEnforcingStream.cs
- CursorInteropHelper.cs
- TreeView.cs
- XmlTextReader.cs