Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollBar.cs / 1305376 / 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
- BitmapEffectrendercontext.cs
- CodeConstructor.cs
- TabControlCancelEvent.cs
- HandoffBehavior.cs
- Logging.cs
- NativeCppClassAttribute.cs
- WmlLabelAdapter.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TriState.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TargetException.cs
- DirectoryObjectSecurity.cs
- StrongNameUtility.cs
- SubpageParaClient.cs
- CommandLibraryHelper.cs
- GroupItem.cs
- ConfigUtil.cs
- SoapFault.cs
- ClientScriptManagerWrapper.cs
- ExpandableObjectConverter.cs
- WindowsProgressbar.cs
- WebPartZoneAutoFormat.cs
- WMIGenerator.cs
- UriParserTemplates.cs
- ServiceDesigner.cs
- DockingAttribute.cs
- ArgumentOutOfRangeException.cs
- ObjectListItemCollection.cs
- SelectionProcessor.cs
- MetadataSource.cs
- PropertyReferenceSerializer.cs
- PropertyEmitterBase.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ZeroOpNode.cs
- VerificationAttribute.cs
- SourceFileBuildProvider.cs
- ListControl.cs
- RichTextBoxAutomationPeer.cs
- BaseContextMenu.cs
- TableChangeProcessor.cs
- ToolStripRenderer.cs
- ControlValuePropertyAttribute.cs
- NetworkInterface.cs
- DbSetClause.cs
- precedingsibling.cs
- GenericPrincipal.cs
- XmlQuerySequence.cs
- HierarchicalDataBoundControl.cs
- PenThreadPool.cs
- Trigger.cs
- StatusBar.cs
- GridSplitterAutomationPeer.cs
- DispatchRuntime.cs
- ProfilePropertySettingsCollection.cs
- IndexerNameAttribute.cs
- RenamedEventArgs.cs
- ArglessEventHandlerProxy.cs
- DataGridViewRowCollection.cs
- RegexParser.cs
- HtmlInputButton.cs
- MembershipPasswordException.cs
- WebControl.cs
- InvalidComObjectException.cs
- CounterCreationDataCollection.cs
- TextParaLineResult.cs
- dataSvcMapFileLoader.cs
- UnmanagedMemoryStream.cs
- HtmlTitle.cs
- TextEditorTyping.cs
- WmpBitmapEncoder.cs
- CodeFieldReferenceExpression.cs
- HwndTarget.cs
- CompoundFileIOPermission.cs
- BinaryExpression.cs
- UpdateException.cs
- BoundField.cs
- DataControlFieldCollection.cs
- XmlCustomFormatter.cs
- FileSystemInfo.cs
- MessageBox.cs
- CurrentTimeZone.cs
- DiscardableAttribute.cs
- UmAlQuraCalendar.cs
- SessionPageStatePersister.cs
- QueryCacheManager.cs
- EntryPointNotFoundException.cs
- InvalidPropValue.cs
- DataObjectAttribute.cs
- WriteTimeStream.cs
- ViewLoader.cs
- UmAlQuraCalendar.cs
- ValidationRuleCollection.cs
- SafeSecurityHandles.cs
- WaitForChangedResult.cs
- DataGridViewTopLeftHeaderCell.cs
- XmlSchema.cs
- UnmanagedMemoryStreamWrapper.cs
- AppearanceEditorPart.cs
- TdsParameterSetter.cs
- FileVersionInfo.cs