Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollBar.cs / 1305376 / 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
- GlobalizationSection.cs
- CoordinationService.cs
- BuildDependencySet.cs
- MethodCallTranslator.cs
- DockPattern.cs
- Profiler.cs
- WebPartTransformer.cs
- XPathMessageContext.cs
- FragmentQueryKB.cs
- TextBox.cs
- ClientOptions.cs
- GCHandleCookieTable.cs
- EventPrivateKey.cs
- TreePrinter.cs
- Msmq4PoisonHandler.cs
- TextTreeText.cs
- DictionaryCustomTypeDescriptor.cs
- UIElement3DAutomationPeer.cs
- SubpageParagraph.cs
- PageBreakRecord.cs
- SystemInfo.cs
- UIElementIsland.cs
- SecurityUniqueId.cs
- SelectionListDesigner.cs
- RangeContentEnumerator.cs
- UniqueConstraint.cs
- QuaternionConverter.cs
- DataGridCaption.cs
- GACIdentityPermission.cs
- DownloadProgressEventArgs.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- CommonDialog.cs
- FrameworkContentElement.cs
- DataTablePropertyDescriptor.cs
- Size3D.cs
- WorkflowRuntimeServiceElement.cs
- CompiledIdentityConstraint.cs
- WebPartPersonalization.cs
- TdsEnums.cs
- Decoder.cs
- LogFlushAsyncResult.cs
- ClassImporter.cs
- HttpRequest.cs
- SelectionList.cs
- ObsoleteAttribute.cs
- TcpConnectionPoolSettingsElement.cs
- Publisher.cs
- XsltOutput.cs
- Viewport2DVisual3D.cs
- SystemColors.cs
- StaticTextPointer.cs
- UrlPropertyAttribute.cs
- TabControlCancelEvent.cs
- FirstMatchCodeGroup.cs
- typedescriptorpermission.cs
- Membership.cs
- CompositeDataBoundControl.cs
- RegexReplacement.cs
- DataTablePropertyDescriptor.cs
- SelectionItemPatternIdentifiers.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ResourceDescriptionAttribute.cs
- DrawingCollection.cs
- KeyEvent.cs
- ADMembershipProvider.cs
- MetadataFile.cs
- Blend.cs
- EntityType.cs
- UniqueEventHelper.cs
- HostDesigntimeLicenseContext.cs
- PrintController.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SqlDataSourceFilteringEventArgs.cs
- ComponentDesigner.cs
- ListViewSelectEventArgs.cs
- StylusPointPropertyId.cs
- EventSetterHandlerConverter.cs
- SqlDataSource.cs
- SecureUICommand.cs
- Animatable.cs
- Cast.cs
- Inflater.cs
- FileSystemEnumerable.cs
- SHA1Cng.cs
- AlternateView.cs
- DelegateArgumentReference.cs
- PauseStoryboard.cs
- RoleManagerSection.cs
- DataBinder.cs
- DispatcherHookEventArgs.cs
- MemberInfoSerializationHolder.cs
- DecimalFormatter.cs
- StringConverter.cs
- HandleRef.cs
- ButtonColumn.cs
- EnterpriseServicesHelper.cs
- MsmqHostedTransportConfiguration.cs
- MethodBody.cs
- isolationinterop.cs
- MasterPage.cs