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
- TemplatePartAttribute.cs
- MultiplexingFormatMapping.cs
- CustomAttributeBuilder.cs
- DiagnosticTrace.cs
- ContractType.cs
- CachedPathData.cs
- SharedUtils.cs
- Visual3DCollection.cs
- ISAPIWorkerRequest.cs
- ContainsRowNumberChecker.cs
- sitestring.cs
- FrameworkTemplate.cs
- webbrowsersite.cs
- NetCodeGroup.cs
- ProfileSettings.cs
- MasterPageParser.cs
- AssemblyUtil.cs
- DPAPIProtectedConfigurationProvider.cs
- ThumbAutomationPeer.cs
- BinaryObjectReader.cs
- Viewport2DVisual3D.cs
- CodeSnippetTypeMember.cs
- AssemblyAttributes.cs
- LinkedResourceCollection.cs
- FocusTracker.cs
- DataGridViewCellValidatingEventArgs.cs
- SerialPinChanges.cs
- GlobalEventManager.cs
- CharUnicodeInfo.cs
- FormViewUpdatedEventArgs.cs
- isolationinterop.cs
- SignatureToken.cs
- DrawingCollection.cs
- WebEventTraceProvider.cs
- RemotingConfiguration.cs
- TypeConstant.cs
- UDPClient.cs
- ObjectCloneHelper.cs
- TextEffect.cs
- TransformGroup.cs
- ReaderContextStackData.cs
- DataRow.cs
- OdbcDataAdapter.cs
- XmlSchemaAttribute.cs
- InternalsVisibleToAttribute.cs
- LinqDataSourceDisposeEventArgs.cs
- CdpEqualityComparer.cs
- RecoverInstanceLocksCommand.cs
- ValidatedMobileControlConverter.cs
- UriTemplateVariableQueryValue.cs
- CompilerParameters.cs
- PictureBox.cs
- DocumentStatusResources.cs
- Parameter.cs
- CodeGotoStatement.cs
- HtmlLabelAdapter.cs
- HttpModuleAction.cs
- RelationshipSet.cs
- RealizationContext.cs
- LongSumAggregationOperator.cs
- RestHandler.cs
- ReachSerializerAsync.cs
- CompositeScriptReferenceEventArgs.cs
- ReceiveErrorHandling.cs
- XmlElementList.cs
- GenerateDerivedKeyRequest.cs
- Stackframe.cs
- SqlProviderUtilities.cs
- Debug.cs
- Exceptions.cs
- X509WindowsSecurityToken.cs
- FontCollection.cs
- DataBoundControlActionList.cs
- streamingZipPartStream.cs
- SafePipeHandle.cs
- regiisutil.cs
- DataGridViewCellStyle.cs
- Geometry.cs
- cache.cs
- AnimationStorage.cs
- HttpClientChannel.cs
- RenderData.cs
- Point3D.cs
- Transactions.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- recordstate.cs
- SqlBuilder.cs
- ClonableStack.cs
- DataControlFieldCell.cs
- SqlRowUpdatingEvent.cs
- CompositeControl.cs
- WebPartDeleteVerb.cs
- XmlSchemaSequence.cs
- configsystem.cs
- VerificationAttribute.cs
- PresentationSource.cs
- SinglePageViewer.cs
- CatalogPartChrome.cs
- OwnerDrawPropertyBag.cs
- WinEventTracker.cs