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
- SmtpFailedRecipientException.cs
- sqlstateclientmanager.cs
- DefaultValueTypeConverter.cs
- BindUriHelper.cs
- XmlUnspecifiedAttribute.cs
- MultiPageTextView.cs
- TransactionContextValidator.cs
- ActivityCodeDomSerializer.cs
- SafeFindHandle.cs
- WindowsListViewGroup.cs
- AutoCompleteStringCollection.cs
- MatchSingleFxEngineOpcode.cs
- MouseEvent.cs
- Walker.cs
- CustomSignedXml.cs
- SpotLight.cs
- UserNameSecurityToken.cs
- CodeObjectCreateExpression.cs
- WebEventTraceProvider.cs
- Part.cs
- CheckoutException.cs
- DesignerVerbCollection.cs
- BindingNavigator.cs
- InputLangChangeRequestEvent.cs
- MarshalDirectiveException.cs
- DrawingVisual.cs
- MouseGestureConverter.cs
- KeyTime.cs
- TdsParameterSetter.cs
- TreeChangeInfo.cs
- MethodCallConverter.cs
- MenuCommand.cs
- CreateUserWizardDesigner.cs
- RemoteDebugger.cs
- XmlLinkedNode.cs
- EditingCommands.cs
- LoadGrammarCompletedEventArgs.cs
- FontStyles.cs
- InvalidWMPVersionException.cs
- FlowDocumentReaderAutomationPeer.cs
- ActivityBindForm.cs
- SQLBytesStorage.cs
- EditingCommands.cs
- PassportIdentity.cs
- RangeValidator.cs
- XmlnsPrefixAttribute.cs
- IDQuery.cs
- VerificationException.cs
- IResourceProvider.cs
- AmbientProperties.cs
- SslStreamSecurityBindingElement.cs
- ResolveMatchesCD1.cs
- XmlSerializerSection.cs
- TemplatedAdorner.cs
- WindowsFormsHost.cs
- Registry.cs
- MessageLoggingFilterTraceRecord.cs
- DispatcherExceptionFilterEventArgs.cs
- NoneExcludedImageIndexConverter.cs
- RemotingClientProxy.cs
- TypeDependencyAttribute.cs
- TrailingSpaceComparer.cs
- EntityCommandExecutionException.cs
- InfoCardTrace.cs
- UniqueID.cs
- HyperlinkAutomationPeer.cs
- QilInvokeEarlyBound.cs
- XmlArrayItemAttribute.cs
- ColumnMapProcessor.cs
- PocoPropertyAccessorStrategy.cs
- PriorityRange.cs
- TextureBrush.cs
- SafeRightsManagementPubHandle.cs
- Rect.cs
- XslNumber.cs
- MasterPage.cs
- OleDbParameter.cs
- XmlSchemaElement.cs
- RegisteredExpandoAttribute.cs
- AttributeEmitter.cs
- AccessorTable.cs
- SqlDataAdapter.cs
- Parser.cs
- IndexingContentUnit.cs
- AssemblyAssociatedContentFileAttribute.cs
- ToolBarPanel.cs
- CodeArrayIndexerExpression.cs
- VoiceChangeEventArgs.cs
- XmlStreamStore.cs
- TemplatePropertyEntry.cs
- AutoResizedEvent.cs
- IxmlLineInfo.cs
- securitymgrsite.cs
- GradientStop.cs
- WrapPanel.cs
- CapacityStreamGeometryContext.cs
- BrowserDefinitionCollection.cs
- AnnotationResource.cs
- PrintingPermissionAttribute.cs
- ButtonFieldBase.cs