Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LookupBindingPropertiesAttribute.cs
- BooleanSwitch.cs
- SortedList.cs
- MimeAnyImporter.cs
- DBCSCodePageEncoding.cs
- XmlSignatureProperties.cs
- DataObjectSettingDataEventArgs.cs
- ReceiveActivityValidator.cs
- Int16AnimationUsingKeyFrames.cs
- ThemeableAttribute.cs
- ListControlConvertEventArgs.cs
- Vector3DConverter.cs
- TextEditorSelection.cs
- ObjectDataSourceMethodEventArgs.cs
- RowVisual.cs
- DataContractFormatAttribute.cs
- IndependentAnimationStorage.cs
- NTAccount.cs
- GeneralTransformCollection.cs
- Run.cs
- HttpResponse.cs
- ObjectKeyFrameCollection.cs
- XmlValueConverter.cs
- HuffModule.cs
- AccessDataSourceView.cs
- ObjectDataSourceStatusEventArgs.cs
- TreeNodeEventArgs.cs
- XmlSchemaSubstitutionGroup.cs
- CodeBinaryOperatorExpression.cs
- AffineTransform3D.cs
- DelegateBodyWriter.cs
- ConstNode.cs
- InlineUIContainer.cs
- ImplicitInputBrush.cs
- DecodeHelper.cs
- ThreadStaticAttribute.cs
- SaveFileDialogDesigner.cs
- FlowLayoutPanel.cs
- ObjectSet.cs
- Completion.cs
- XsltCompileContext.cs
- SqlCommandAsyncResult.cs
- UrlSyndicationContent.cs
- CommunicationObjectAbortedException.cs
- ClientApiGenerator.cs
- XmlWrappingReader.cs
- RotateTransform.cs
- DeclaredTypeElement.cs
- XmlQualifiedName.cs
- BaseCodePageEncoding.cs
- DiscoveryEndpointValidator.cs
- DateTimeOffsetStorage.cs
- CompositeTypefaceMetrics.cs
- XDRSchema.cs
- FrameDimension.cs
- MouseActionConverter.cs
- InProcStateClientManager.cs
- SamlAuthorizationDecisionStatement.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- AsyncStreamReader.cs
- DispatcherTimer.cs
- HMACSHA1.cs
- Property.cs
- MethodToken.cs
- Queue.cs
- ProfileServiceManager.cs
- ModifiableIteratorCollection.cs
- ReadOnlyDataSourceView.cs
- SizeKeyFrameCollection.cs
- ThreadNeutralSemaphore.cs
- TableLayoutPanel.cs
- SymDocumentType.cs
- DataBoundLiteralControl.cs
- TargetControlTypeCache.cs
- SByte.cs
- EventProviderClassic.cs
- TextComposition.cs
- ProxyElement.cs
- X509UI.cs
- CryptoProvider.cs
- DefinitionBase.cs
- DBCommandBuilder.cs
- codemethodreferenceexpression.cs
- ColumnHeaderConverter.cs
- StateItem.cs
- CharacterHit.cs
- MenuItemCollectionEditor.cs
- PluralizationServiceUtil.cs
- HtmlTextBoxAdapter.cs
- HttpCacheParams.cs
- EntityTypeBase.cs
- GenericEnumerator.cs
- QueryAccessibilityHelpEvent.cs
- OleDbCommand.cs
- XmlExtensionFunction.cs
- CustomSignedXml.cs
- FileUtil.cs
- XmlEncodedRawTextWriter.cs
- DbDataAdapter.cs
- OleDbStruct.cs