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
- XamlWriter.cs
- IteratorFilter.cs
- TreeNodeMouseHoverEvent.cs
- MethodAccessException.cs
- DataServiceQueryProvider.cs
- _LocalDataStoreMgr.cs
- CheckBoxFlatAdapter.cs
- OleDbWrapper.cs
- ECDiffieHellmanCngPublicKey.cs
- DoubleKeyFrameCollection.cs
- linebase.cs
- Deserializer.cs
- ColorContext.cs
- DebugTracing.cs
- cryptoapiTransform.cs
- DateTimeFormatInfoScanner.cs
- DocumentSchemaValidator.cs
- BinaryReader.cs
- ArraySegment.cs
- GACMembershipCondition.cs
- ContainerFilterService.cs
- TemplateBamlRecordReader.cs
- GenericWebPart.cs
- SamlEvidence.cs
- JpegBitmapDecoder.cs
- GradientStop.cs
- EntityTransaction.cs
- Error.cs
- BitmapImage.cs
- ObjectDataSourceFilteringEventArgs.cs
- CachedRequestParams.cs
- SqlDataSource.cs
- AccessorTable.cs
- XmlStringTable.cs
- GPRECT.cs
- ReadContentAsBinaryHelper.cs
- ProgressBarAutomationPeer.cs
- CodeDOMUtility.cs
- ExternalException.cs
- CodeSubDirectoriesCollection.cs
- Pen.cs
- MarshalDirectiveException.cs
- MbpInfo.cs
- ChannelTokenTypeConverter.cs
- EntitySqlException.cs
- CacheOutputQuery.cs
- JapaneseCalendar.cs
- HtmlMeta.cs
- Transform.cs
- WebControl.cs
- MultiPageTextView.cs
- ListViewDeleteEventArgs.cs
- HttpServerVarsCollection.cs
- Size.cs
- Keywords.cs
- JsonMessageEncoderFactory.cs
- Synchronization.cs
- DataRowCollection.cs
- OperationPickerDialog.cs
- FormatSettings.cs
- MimeXmlImporter.cs
- UrlMapping.cs
- CompileXomlTask.cs
- SplineKeyFrames.cs
- _SingleItemRequestCache.cs
- CatchDesigner.xaml.cs
- RefreshEventArgs.cs
- SQLDouble.cs
- RegexRunnerFactory.cs
- TraceHelpers.cs
- SessionStateModule.cs
- CodePrimitiveExpression.cs
- ToolZone.cs
- figurelengthconverter.cs
- CustomValidator.cs
- SQLGuidStorage.cs
- HMACSHA512.cs
- CompareValidator.cs
- WebExceptionStatus.cs
- StringUtil.cs
- UnsafeMethods.cs
- MouseGestureConverter.cs
- ZoneMembershipCondition.cs
- MatrixCamera.cs
- PtsHost.cs
- ElementHostAutomationPeer.cs
- Classification.cs
- CommentGlyph.cs
- PageSetupDialog.cs
- MiniModule.cs
- EntityFunctions.cs
- PointIndependentAnimationStorage.cs
- DrawingCollection.cs
- InstancePersistence.cs
- SchemaImporter.cs
- StreamUpdate.cs
- DataGridViewCellEventArgs.cs
- GenericAuthenticationEventArgs.cs
- FixedPageStructure.cs
- BordersPage.cs