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
- RuntimeConfigurationRecord.cs
- DeclaredTypeElementCollection.cs
- FieldTemplateFactory.cs
- RelationshipWrapper.cs
- LightweightEntityWrapper.cs
- ItemCollection.cs
- OutputCacheProfileCollection.cs
- Bits.cs
- StyleSelector.cs
- ThreadStateException.cs
- GenerateHelper.cs
- ConnectionsZoneDesigner.cs
- ScalarOps.cs
- SecurityUniqueId.cs
- Baml2006ReaderSettings.cs
- SqlTriggerAttribute.cs
- Message.cs
- UIElement3D.cs
- RuleInfoComparer.cs
- ReadWriteControlDesigner.cs
- UrlPath.cs
- RadioButton.cs
- SigningDialog.cs
- LogicalTreeHelper.cs
- BasePattern.cs
- SqlException.cs
- RotateTransform.cs
- SecurityManager.cs
- InternalBase.cs
- VersionedStreamOwner.cs
- TransformedBitmap.cs
- ProxyWebPartManager.cs
- ChameleonKey.cs
- RegexCapture.cs
- GC.cs
- ResourceReferenceExpressionConverter.cs
- NamespaceList.cs
- DrawingContextWalker.cs
- _AutoWebProxyScriptWrapper.cs
- EpmCustomContentDeSerializer.cs
- RegexBoyerMoore.cs
- ObjectListItemCollection.cs
- DesignerActionHeaderItem.cs
- WindowHideOrCloseTracker.cs
- Rectangle.cs
- _HelperAsyncResults.cs
- ReflectionPermission.cs
- HttpAsyncResult.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Parameter.cs
- ellipse.cs
- mansign.cs
- OAVariantLib.cs
- TreeNodeMouseHoverEvent.cs
- PreviewPageInfo.cs
- BitmapEffectGroup.cs
- ColumnWidthChangingEvent.cs
- AssemblyCollection.cs
- CustomTypeDescriptor.cs
- KeyMatchBuilder.cs
- XmlWriterTraceListener.cs
- XamlPointCollectionSerializer.cs
- GrammarBuilderDictation.cs
- XmlCharacterData.cs
- SqlTypeConverter.cs
- NumberEdit.cs
- KoreanLunisolarCalendar.cs
- WindowAutomationPeer.cs
- SplitterEvent.cs
- Range.cs
- dtdvalidator.cs
- BadImageFormatException.cs
- Control.cs
- SplashScreenNativeMethods.cs
- SqlDataSourceCommandEventArgs.cs
- OdbcParameter.cs
- DatePickerDateValidationErrorEventArgs.cs
- PlainXmlWriter.cs
- ViewGenerator.cs
- LinkedResourceCollection.cs
- HandlerBase.cs
- TextBlockAutomationPeer.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- EmptyEnumerable.cs
- ImageDrawing.cs
- processwaithandle.cs
- ListViewEditEventArgs.cs
- DesignerActionUI.cs
- ZipArchive.cs
- ConsoleTraceListener.cs
- LocalsItemDescription.cs
- ClockGroup.cs
- ServiceOperation.cs
- UpWmlMobileTextWriter.cs
- ConfigDefinitionUpdates.cs
- Visitors.cs
- Vector3D.cs
- SequentialUshortCollection.cs
- BamlLocalizableResource.cs
- SessionStateContainer.cs