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
- SQLUtility.cs
- DataSourceCache.cs
- Vector3D.cs
- NullableFloatAverageAggregationOperator.cs
- TemplatePagerField.cs
- XmlDownloadManager.cs
- TreeViewDesigner.cs
- XmlTextWriter.cs
- CodeSubDirectory.cs
- CompiledIdentityConstraint.cs
- Transform.cs
- DiscoveryDocumentSearchPattern.cs
- HostProtectionException.cs
- ObfuscationAttribute.cs
- NotifyInputEventArgs.cs
- UpdateProgress.cs
- EventData.cs
- InteropDesigner.xaml.cs
- RepeaterItem.cs
- FilterInvalidBodyAccessException.cs
- selecteditemcollection.cs
- LeftCellWrapper.cs
- PeerToPeerException.cs
- DataBinding.cs
- ConstructorNeedsTagAttribute.cs
- ListDataBindEventArgs.cs
- ConstraintConverter.cs
- Matrix3DConverter.cs
- PartialArray.cs
- ChangePassword.cs
- ConnectionInterfaceCollection.cs
- CmsInterop.cs
- OperandQuery.cs
- StorageScalarPropertyMapping.cs
- _TimerThread.cs
- ExceptionWrapper.cs
- StructuredTypeEmitter.cs
- XmlDocumentType.cs
- Glyph.cs
- FunctionGenerator.cs
- FixedSOMTableCell.cs
- MobileUITypeEditor.cs
- SlipBehavior.cs
- EventListenerClientSide.cs
- EditorPart.cs
- TabControlToolboxItem.cs
- UriGenerator.cs
- ObjectViewFactory.cs
- ExceptionUtil.cs
- Constants.cs
- StringDictionary.cs
- RegexCapture.cs
- AliasExpr.cs
- XmlSchemaValidationException.cs
- LinkTarget.cs
- FieldNameLookup.cs
- DataFormat.cs
- ClientOperationFormatterProvider.cs
- LinkedResourceCollection.cs
- Variant.cs
- _Semaphore.cs
- InvalidateEvent.cs
- AppSettingsReader.cs
- SolidColorBrush.cs
- XmlSecureResolver.cs
- FormatStringEditor.cs
- XmlNullResolver.cs
- DrawingVisual.cs
- XmlTypeMapping.cs
- TypographyProperties.cs
- RemoteWebConfigurationHostStream.cs
- GridViewUpdatedEventArgs.cs
- BindingMAnagerBase.cs
- panel.cs
- GetReadStreamResult.cs
- InternalMappingException.cs
- ExceptionUtil.cs
- xmlfixedPageInfo.cs
- ButtonColumn.cs
- Transform3DGroup.cs
- FragmentQueryProcessor.cs
- NamespaceMapping.cs
- MultidimensionalArrayItemReference.cs
- AnnotationResourceCollection.cs
- Thickness.cs
- CollectionConverter.cs
- PropertyTabChangedEvent.cs
- UriTemplatePathSegment.cs
- DesignerActionKeyboardBehavior.cs
- SQLSingleStorage.cs
- FormViewRow.cs
- SystemFonts.cs
- SiteMembershipCondition.cs
- AssemblyHash.cs
- RepeatButton.cs
- ApplicationContext.cs
- TargetConverter.cs
- EDesignUtil.cs
- AllowedAudienceUriElement.cs
- CapabilitiesSection.cs