Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / UIAutomation / Win32Providers / MS / Internal / AutomationProxies / WindowsStartMenu.cs / 1 / 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
- TableItemPattern.cs
- NavigationService.cs
- RuntimeArgumentHandle.cs
- MergablePropertyAttribute.cs
- XmlSchemaImporter.cs
- PropertyInformation.cs
- InlineCollection.cs
- HMACRIPEMD160.cs
- XmlComplianceUtil.cs
- WindowsImpersonationContext.cs
- BorderSidesEditor.cs
- DrawTreeNodeEventArgs.cs
- DataGridViewCellMouseEventArgs.cs
- SqlFacetAttribute.cs
- XmlSchemaInfo.cs
- DropAnimation.xaml.cs
- FileDetails.cs
- TableRowsCollectionEditor.cs
- XamlTypeMapper.cs
- StorageEntitySetMapping.cs
- DriveNotFoundException.cs
- ReadOnlyHierarchicalDataSource.cs
- OleDbReferenceCollection.cs
- ProfileService.cs
- MetadataItemCollectionFactory.cs
- Int16KeyFrameCollection.cs
- MultilineStringConverter.cs
- BuildManagerHost.cs
- UserPrincipalNameElement.cs
- CallSiteOps.cs
- ListBoxItem.cs
- CustomAttributeSerializer.cs
- ListBindingConverter.cs
- RuntimeEnvironment.cs
- ListViewGroupItemCollection.cs
- SqlDependencyListener.cs
- SelectingProviderEventArgs.cs
- SafeViewOfFileHandle.cs
- TextSelectionHighlightLayer.cs
- DelayedRegex.cs
- PassportAuthentication.cs
- WorkflowMarkupSerializer.cs
- TextContainerChangedEventArgs.cs
- GridEntry.cs
- GenericUriParser.cs
- Underline.cs
- FacetDescriptionElement.cs
- HuffCodec.cs
- NavigationService.cs
- ipaddressinformationcollection.cs
- RegisteredArrayDeclaration.cs
- MessageParameterAttribute.cs
- PeerInvitationResponse.cs
- ValueProviderWrapper.cs
- UrlMappingsSection.cs
- FlagsAttribute.cs
- ResourceDefaultValueAttribute.cs
- CodeCompiler.cs
- XmlSchemaRedefine.cs
- DataFormats.cs
- CompiledQueryCacheEntry.cs
- ManualWorkflowSchedulerService.cs
- Popup.cs
- DynamicRenderer.cs
- ReturnValue.cs
- LabelLiteral.cs
- WebPartMenuStyle.cs
- SizeChangedInfo.cs
- SelectionPattern.cs
- DragEvent.cs
- ResourceManagerWrapper.cs
- CompilerError.cs
- BamlBinaryReader.cs
- CalloutQueueItem.cs
- ExtensionElement.cs
- ExpanderAutomationPeer.cs
- SqlCacheDependencyDatabaseCollection.cs
- TextBoxRenderer.cs
- UdpSocketReceiveManager.cs
- DropShadowEffect.cs
- ConfigXmlElement.cs
- Tracking.cs
- CodeSnippetExpression.cs
- TabRenderer.cs
- PromptBuilder.cs
- PackUriHelper.cs
- TypeSemantics.cs
- TreeViewEvent.cs
- IApplicationTrustManager.cs
- documentsequencetextpointer.cs
- ServiceReference.cs
- XmlReaderSettings.cs
- SQLConvert.cs
- SchemaTableColumn.cs
- ListControlBuilder.cs
- PromptBuilder.cs
- NavigatingCancelEventArgs.cs
- PropertyMetadata.cs
- CompressionTransform.cs
- RichTextBox.cs