Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / Win32Providers / MS / Internal / AutomationProxies / WindowsStartMenu.cs / 1305600 / WindowsStartMenu.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Implementation of a provider for the Classic Start Menu // // History: // 09/07/2004 : [....] Created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; namespace MS.Internal.AutomationProxies { class WindowsStartMenu : ProxyHwnd, IRawElementProviderSimple { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors public WindowsStartMenu(IntPtr hwnd, ProxyHwnd parent, int item) : base( hwnd, parent, item) { _sAutomationId = "StartMenu"; } #endregion Constructors #region Proxy Create // Static Create method called by UIAutomation to create this proxy. // returns null if unsuccessful internal static IRawElementProviderSimple Create(IntPtr hwnd, int idChild, int idObject) { return Create(hwnd, idChild); } private static IRawElementProviderSimple Create(IntPtr hwnd, int idChild) { // Something is wrong if idChild is not zero if (idChild != 0) { System.Diagnostics.Debug.Assert(idChild == 0, "Invalid Child Id, idChild != 0"); throw new ArgumentOutOfRangeException("idChild", idChild, SR.Get(SRID.ShouldBeZero)); } return new WindowsStartMenu(hwnd, null, 0); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Implementation of a provider for the Classic Start Menu // // History: // 09/07/2004 : [....] Created // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; namespace MS.Internal.AutomationProxies { class WindowsStartMenu : ProxyHwnd, IRawElementProviderSimple { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors public WindowsStartMenu(IntPtr hwnd, ProxyHwnd parent, int item) : base( hwnd, parent, item) { _sAutomationId = "StartMenu"; } #endregion Constructors #region Proxy Create // Static Create method called by UIAutomation to create this proxy. // returns null if unsuccessful internal static IRawElementProviderSimple Create(IntPtr hwnd, int idChild, int idObject) { return Create(hwnd, idChild); } private static IRawElementProviderSimple Create(IntPtr hwnd, int idChild) { // Something is wrong if idChild is not zero if (idChild != 0) { System.Diagnostics.Debug.Assert(idChild == 0, "Invalid Child Id, idChild != 0"); throw new ArgumentOutOfRangeException("idChild", idChild, SR.Get(SRID.ShouldBeZero)); } return new WindowsStartMenu(hwnd, null, 0); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ManagementScope.cs
- CacheVirtualItemsEvent.cs
- BufferedOutputStream.cs
- SerializationObjectManager.cs
- APCustomTypeDescriptor.cs
- COAUTHINFO.cs
- CodePropertyReferenceExpression.cs
- SmtpTransport.cs
- SafeSecurityHelper.cs
- DynamicResourceExtension.cs
- PageRequestManager.cs
- ScrollItemPatternIdentifiers.cs
- ScrollItemPatternIdentifiers.cs
- IdnMapping.cs
- ListenerAdapterBase.cs
- SessionKeyExpiredException.cs
- OpenTypeCommon.cs
- QilGeneratorEnv.cs
- ServiceContractGenerator.cs
- AsyncOperation.cs
- XmlDocumentType.cs
- PageThemeParser.cs
- X509ChainPolicy.cs
- InputMethod.cs
- InfoCardSymmetricAlgorithm.cs
- WindowsSolidBrush.cs
- ImageDrawing.cs
- ConfigurationManagerInternal.cs
- IIS7UserPrincipal.cs
- DCSafeHandle.cs
- WindowsListViewSubItem.cs
- LeaseManager.cs
- Header.cs
- CompensateDesigner.cs
- CatalogPart.cs
- GroupBox.cs
- DataRelationCollection.cs
- WpfGeneratedKnownProperties.cs
- CodeMemberMethod.cs
- GlobalId.cs
- DynamicDocumentPaginator.cs
- MethodBuilder.cs
- XhtmlMobileTextWriter.cs
- BuildDependencySet.cs
- DecimalKeyFrameCollection.cs
- HttpListenerException.cs
- FieldToken.cs
- isolationinterop.cs
- Converter.cs
- CodeAttributeDeclarationCollection.cs
- SystemDiagnosticsSection.cs
- ViewEventArgs.cs
- TrimSurroundingWhitespaceAttribute.cs
- SmtpTransport.cs
- SqlFormatter.cs
- OutputCacheProfileCollection.cs
- HashStream.cs
- EditCommandColumn.cs
- LineUtil.cs
- WindowsScroll.cs
- columnmapkeybuilder.cs
- FormViewUpdateEventArgs.cs
- AspProxy.cs
- ComNativeDescriptor.cs
- WinHttpWebProxyFinder.cs
- InvalidPropValue.cs
- PreviewPrintController.cs
- SetState.cs
- DropSource.cs
- ClientSponsor.cs
- Event.cs
- WebPartManagerInternals.cs
- ColorConvertedBitmapExtension.cs
- TransactionChannelFaultConverter.cs
- MimeParameter.cs
- EventPropertyMap.cs
- RightsManagementPermission.cs
- CodeMemberProperty.cs
- HostProtectionPermission.cs
- SizeFConverter.cs
- XPathMessageContext.cs
- processwaithandle.cs
- ScalarType.cs
- ObjectDataSource.cs
- XPathAncestorIterator.cs
- RequestResizeEvent.cs
- ColumnCollectionEditor.cs
- CodeValidator.cs
- UriSection.cs
- SqlMethods.cs
- ControlEvent.cs
- PersonalizationStateInfoCollection.cs
- SecurityContext.cs
- ImageField.cs
- Baml2006ReaderContext.cs
- GeometryValueSerializer.cs
- DataBindingCollectionConverter.cs
- ExtendedProperty.cs
- HMACSHA256.cs
- PositiveTimeSpanValidatorAttribute.cs