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
- SqlErrorCollection.cs
- ZipIOExtraFieldElement.cs
- DispatcherEventArgs.cs
- ReflectPropertyDescriptor.cs
- CodeCompileUnit.cs
- XpsDocumentEvent.cs
- SpanIndex.cs
- RelOps.cs
- PersonalizableTypeEntry.cs
- MessageQueueException.cs
- GroupByExpressionRewriter.cs
- WebPartEditVerb.cs
- ZipIOLocalFileDataDescriptor.cs
- ClockGroup.cs
- RuntimeHelpers.cs
- HttpModuleCollection.cs
- LabelEditEvent.cs
- MetadataCacheItem.cs
- QilTargetType.cs
- Form.cs
- XmlWriterSettings.cs
- SemanticResultValue.cs
- SafeNativeMethods.cs
- _ListenerAsyncResult.cs
- GlyphCache.cs
- EdmSchemaError.cs
- InputLangChangeEvent.cs
- RpcAsyncResult.cs
- XmlValueConverter.cs
- SqlRemoveConstantOrderBy.cs
- X509CertificateCollection.cs
- FontSourceCollection.cs
- TreeWalker.cs
- MgmtResManager.cs
- ColumnReorderedEventArgs.cs
- Frame.cs
- HttpApplication.cs
- AutomationProperty.cs
- ControlPropertyNameConverter.cs
- CellRelation.cs
- TableTextElementCollectionInternal.cs
- IncrementalCompileAnalyzer.cs
- PointLight.cs
- PermissionToken.cs
- StringFormat.cs
- NodeFunctions.cs
- AutoScrollHelper.cs
- CompilerError.cs
- SystemDiagnosticsSection.cs
- RepeaterItemCollection.cs
- TranslateTransform.cs
- MaskedTextBox.cs
- QilXmlWriter.cs
- SqlRemoveConstantOrderBy.cs
- GACIdentityPermission.cs
- DBSqlParserTableCollection.cs
- CompiledQueryCacheKey.cs
- SapiAttributeParser.cs
- CollectionCodeDomSerializer.cs
- ThreadAbortException.cs
- Signature.cs
- CompiledQueryCacheKey.cs
- DesignTimeVisibleAttribute.cs
- InstanceData.cs
- EditorZone.cs
- MouseDevice.cs
- EpmContentSerializer.cs
- RolePrincipal.cs
- UmAlQuraCalendar.cs
- CompoundFileDeflateTransform.cs
- SessionStateUtil.cs
- XPathNavigatorKeyComparer.cs
- MaskedTextProvider.cs
- EntityDataSourceReferenceGroup.cs
- TreeNodeSelectionProcessor.cs
- Journaling.cs
- ConnectivityStatus.cs
- BuilderPropertyEntry.cs
- SizeChangedEventArgs.cs
- ImageClickEventArgs.cs
- SizeAnimationBase.cs
- TriState.cs
- UnsafeNativeMethods.cs
- AnnotationAuthorChangedEventArgs.cs
- HealthMonitoringSection.cs
- FormViewInsertEventArgs.cs
- XsdDateTime.cs
- recordstate.cs
- CompressionTransform.cs
- XmlCharType.cs
- GestureRecognitionResult.cs
- wmiprovider.cs
- Rotation3DAnimationBase.cs
- OdbcParameter.cs
- ApplicationProxyInternal.cs
- MatrixCamera.cs
- AsymmetricAlgorithm.cs
- DependencyObjectProvider.cs
- TypedReference.cs
- FormClosedEvent.cs