Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollBar.cs / 1 / HScrollBar.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.Security.Permissions; using System.Windows.Forms; using System.Drawing; using Microsoft.Win32; using System.Runtime.InteropServices; ////// /// [ComVisible(true), ClassInterface(ClassInterfaceType.AutoDispatch), SRDescription(SR.DescriptionHScrollBar) ] public class HScrollBar : ScrollBar { ////// Represents /// a standard Windows horizontal scroll bar. /// ////// /// /// protected override CreateParams CreateParams { [SecurityPermission(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)] get { CreateParams cp = base.CreateParams; cp.Style |= NativeMethods.SBS_HORZ; return cp; } } ////// Returns the parameters needed to create the handle. Inheriting classes /// can override this to provide extra functionality. They should not, /// however, forget to call base.getCreateParams() first to get the struct /// filled up with the basic info. /// ////// /// Deriving classes can override this to configure a default size for their control. /// This is more efficient than setting the size in the control's constructor. /// protected override Size DefaultSize { get { return new Size(80, SystemInformation.HorizontalScrollBarHeight); } } } } // 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; using System.Security.Permissions; using System.Windows.Forms; using System.Drawing; using Microsoft.Win32; using System.Runtime.InteropServices; ////// /// [ComVisible(true), ClassInterface(ClassInterfaceType.AutoDispatch), SRDescription(SR.DescriptionHScrollBar) ] public class HScrollBar : ScrollBar { ////// Represents /// a standard Windows horizontal scroll bar. /// ////// /// /// protected override CreateParams CreateParams { [SecurityPermission(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.UnmanagedCode)] get { CreateParams cp = base.CreateParams; cp.Style |= NativeMethods.SBS_HORZ; return cp; } } ////// Returns the parameters needed to create the handle. Inheriting classes /// can override this to provide extra functionality. They should not, /// however, forget to call base.getCreateParams() first to get the struct /// filled up with the basic info. /// ////// /// Deriving classes can override this to configure a default size for their control. /// This is more efficient than setting the size in the control's constructor. /// protected override Size DefaultSize { get { return new Size(80, SystemInformation.HorizontalScrollBarHeight); } } } } // 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
- OLEDB_Util.cs
- NetTcpSecurityElement.cs
- Exceptions.cs
- HtmlHead.cs
- OrCondition.cs
- XmlTextEncoder.cs
- PropertyValue.cs
- UnmanagedMemoryStreamWrapper.cs
- SpellerHighlightLayer.cs
- RevocationPoint.cs
- QueryRewriter.cs
- ContentType.cs
- RtfToken.cs
- RegexFCD.cs
- DataGridLinkButton.cs
- ButtonBaseDesigner.cs
- RotateTransform3D.cs
- StreamResourceInfo.cs
- LabelAutomationPeer.cs
- SqlRecordBuffer.cs
- ScaleTransform.cs
- BufferedGraphicsContext.cs
- WindowsUpDown.cs
- EditorPartDesigner.cs
- SessionEndingEventArgs.cs
- SubclassTypeValidatorAttribute.cs
- CmsInterop.cs
- SpecialTypeDataContract.cs
- EntityCollection.cs
- XmlSerializerVersionAttribute.cs
- HtmlInputSubmit.cs
- HyperLinkColumn.cs
- IPEndPoint.cs
- ReservationCollection.cs
- SocketPermission.cs
- HasRunnableWorkflowEvent.cs
- SchemaMapping.cs
- DecimalFormatter.cs
- MatrixKeyFrameCollection.cs
- UIAgentRequest.cs
- PageCodeDomTreeGenerator.cs
- SafeUserTokenHandle.cs
- StringFunctions.cs
- ErrorStyle.cs
- CompilationRelaxations.cs
- WebPartCatalogAddVerb.cs
- DbExpressionRules.cs
- FutureFactory.cs
- XmlSchemaObjectCollection.cs
- InternalConfigSettingsFactory.cs
- HttpClientCertificate.cs
- tibetanshape.cs
- WeakRefEnumerator.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- DatatypeImplementation.cs
- Single.cs
- RootBuilder.cs
- SeekStoryboard.cs
- DataSpaceManager.cs
- SerializableAttribute.cs
- DataGridViewColumnCollection.cs
- precedingsibling.cs
- PolyLineSegmentFigureLogic.cs
- ExpandedWrapper.cs
- StylusPointProperty.cs
- _ProxyChain.cs
- IisTraceWebEventProvider.cs
- ExpressionBinding.cs
- InvalidPipelineStoreException.cs
- UpDownBase.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MostlySingletonList.cs
- OleDbTransaction.cs
- ContainerUIElement3D.cs
- LayoutTableCell.cs
- HttpVersion.cs
- QueryOutputWriter.cs
- AncestorChangedEventArgs.cs
- PolyLineSegment.cs
- OdbcConnectionOpen.cs
- WebPartsSection.cs
- KeyValueConfigurationElement.cs
- TypeDescriptorContext.cs
- ShaderRenderModeValidation.cs
- DataViewListener.cs
- EndpointDiscoveryMetadata11.cs
- FormClosedEvent.cs
- DecimalStorage.cs
- UnicodeEncoding.cs
- MessagePartDescriptionCollection.cs
- PersonalizationProviderHelper.cs
- MsmqActivation.cs
- TabControl.cs
- RequestCacheEntry.cs
- Int16Converter.cs
- StorageConditionPropertyMapping.cs
- WaitForChangedResult.cs
- Maps.cs
- AsyncSerializedWorker.cs
- FontFamily.cs