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
- wgx_exports.cs
- PixelFormats.cs
- UTF7Encoding.cs
- BooleanStorage.cs
- QuotedPairReader.cs
- PersonalizablePropertyEntry.cs
- EntityCommandDefinition.cs
- DivideByZeroException.cs
- ToolBar.cs
- EncodingDataItem.cs
- LogSwitch.cs
- GraphicsContainer.cs
- PeerObject.cs
- ResourceDefaultValueAttribute.cs
- ConfigXmlComment.cs
- OutputScope.cs
- CompositeScriptReferenceEventArgs.cs
- PeerPresenceInfo.cs
- XsltFunctions.cs
- Descriptor.cs
- InternalMappingException.cs
- ListViewItemSelectionChangedEvent.cs
- DbConnectionOptions.cs
- rsa.cs
- TemplatedWizardStep.cs
- XmlDataSourceNodeDescriptor.cs
- StretchValidation.cs
- HttpContextWrapper.cs
- TimeoutHelper.cs
- Row.cs
- HostProtectionException.cs
- CollectionsUtil.cs
- DataChangedEventManager.cs
- AssociationEndMember.cs
- XmlSchemaAttributeGroupRef.cs
- InputLanguageManager.cs
- InvokeBase.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SiblingIterators.cs
- ComboBox.cs
- GeneralTransformCollection.cs
- XmlElementAttribute.cs
- SafeUserTokenHandle.cs
- PagesChangedEventArgs.cs
- EqualityComparer.cs
- ArgumentNullException.cs
- Attribute.cs
- CompilationLock.cs
- DocumentSequence.cs
- MultilineStringConverter.cs
- TemplateBamlTreeBuilder.cs
- OleDbDataAdapter.cs
- HandlerBase.cs
- ToolBarButtonClickEvent.cs
- SecurityProtocolFactory.cs
- ISAPIRuntime.cs
- NullableDoubleMinMaxAggregationOperator.cs
- WindowsIdentity.cs
- PropertyCollection.cs
- sqlpipe.cs
- DataGridViewComboBoxCell.cs
- PropertyInformationCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- DataServiceExpressionVisitor.cs
- SQLGuidStorage.cs
- VariableQuery.cs
- cryptoapiTransform.cs
- DataContractSet.cs
- ComplexTypeEmitter.cs
- XmlTextReaderImpl.cs
- EnumMember.cs
- TemplateBindingExpressionConverter.cs
- UnhandledExceptionEventArgs.cs
- DataMisalignedException.cs
- OdbcInfoMessageEvent.cs
- PkcsUtils.cs
- Int32CollectionValueSerializer.cs
- PartitionerStatic.cs
- ModifierKeysConverter.cs
- DetailsViewPageEventArgs.cs
- XmlCodeExporter.cs
- VirtualizedCellInfoCollection.cs
- DataKey.cs
- Translator.cs
- SQLGuid.cs
- ConstNode.cs
- BufferBuilder.cs
- ParameterToken.cs
- DecoderReplacementFallback.cs
- TraceRecords.cs
- CSharpCodeProvider.cs
- ISessionStateStore.cs
- ProfileEventArgs.cs
- EnumerableCollectionView.cs
- ConfigXmlText.cs
- RoutedCommand.cs
- SqlConnectionManager.cs
- UrlMapping.cs
- TemplateControlBuildProvider.cs
- NetCodeGroup.cs