Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- UnsafeNativeMethods.cs
- PolicyStatement.cs
- Helpers.cs
- TableChangeProcessor.cs
- HttpListenerResponse.cs
- ISCIIEncoding.cs
- XamlBuildTaskServices.cs
- BindingsCollection.cs
- SystemSounds.cs
- MetaTableHelper.cs
- EventBuilder.cs
- InkCanvasFeedbackAdorner.cs
- TrustManagerMoreInformation.cs
- BookmarkWorkItem.cs
- AdornerPresentationContext.cs
- altserialization.cs
- ConfigurationSettings.cs
- SizeConverter.cs
- _NetworkingPerfCounters.cs
- SwitchLevelAttribute.cs
- ImportedPolicyConversionContext.cs
- QueryParameter.cs
- StyleSheetComponentEditor.cs
- ConcurrentDictionary.cs
- DataViewListener.cs
- Light.cs
- IsolatedStorageFilePermission.cs
- IgnoreDeviceFilterElement.cs
- DataSourceCacheDurationConverter.cs
- StoreContentChangedEventArgs.cs
- tibetanshape.cs
- ContactManager.cs
- InstanceOwner.cs
- Application.cs
- MsmqIntegrationBindingElement.cs
- Rules.cs
- ErrorWebPart.cs
- XappLauncher.cs
- SafeMILHandle.cs
- BindingSource.cs
- ConfigurationManagerHelper.cs
- SurrogateEncoder.cs
- RowBinding.cs
- RegexRunner.cs
- elementinformation.cs
- DesignerContextDescriptor.cs
- StateMachineHelpers.cs
- CommandLibraryHelper.cs
- OperatorExpressions.cs
- XmlAtomicValue.cs
- CAGDesigner.cs
- TableCellCollection.cs
- AccessDataSourceView.cs
- UpdateTracker.cs
- RealProxy.cs
- XPathMultyIterator.cs
- DataAdapter.cs
- TableSectionStyle.cs
- ReflectionTypeLoadException.cs
- EventLog.cs
- MatrixTransform3D.cs
- DateTimeOffsetConverter.cs
- SessionStateItemCollection.cs
- CodeIndexerExpression.cs
- ConnectionManagementElement.cs
- DecimalSumAggregationOperator.cs
- LongCountAggregationOperator.cs
- AppLevelCompilationSectionCache.cs
- MenuScrollingVisibilityConverter.cs
- SevenBitStream.cs
- ShapingEngine.cs
- _SSPIWrapper.cs
- StrongNameIdentityPermission.cs
- IsolatedStoragePermission.cs
- BamlStream.cs
- CacheEntry.cs
- XmlSignificantWhitespace.cs
- ListViewInsertEventArgs.cs
- BezierSegment.cs
- DateTimeConstantAttribute.cs
- ToolStripComboBox.cs
- CngKeyCreationParameters.cs
- BoolExpr.cs
- RbTree.cs
- XsltException.cs
- IgnoreSection.cs
- MultiPropertyDescriptorGridEntry.cs
- ErrorInfoXmlDocument.cs
- LinkLabel.cs
- ComponentResourceManager.cs
- ComponentCommands.cs
- IgnoreFlushAndCloseStream.cs
- Barrier.cs
- MetadataArtifactLoaderCompositeFile.cs
- ValidationRuleCollection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- NavigationWindowAutomationPeer.cs
- FamilyCollection.cs
- BackgroundFormatInfo.cs
- Pair.cs