Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- hresults.cs
- COMException.cs
- MeshGeometry3D.cs
- WebPartTransformerAttribute.cs
- MultiBindingExpression.cs
- DefaultValueAttribute.cs
- DesignSurface.cs
- Metafile.cs
- DecimalConstantAttribute.cs
- ResourceDescriptionAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- MimeMapping.cs
- RemoveStoryboard.cs
- FixedNode.cs
- CatalogUtil.cs
- RubberbandSelector.cs
- RadioButtonList.cs
- GreaterThan.cs
- WebConfigManager.cs
- PropertyGridView.cs
- ExtractedStateEntry.cs
- InvokeHandlers.cs
- KeyValueInternalCollection.cs
- SingleConverter.cs
- PaintValueEventArgs.cs
- StringResourceManager.cs
- UntypedNullExpression.cs
- SvcMapFile.cs
- HexParser.cs
- _SSPISessionCache.cs
- BuildProvider.cs
- DynamicDataExtensions.cs
- ExpressionBuilder.cs
- StreamReader.cs
- messageonlyhwndwrapper.cs
- ObjectListCommandEventArgs.cs
- TextBoxView.cs
- RenamedEventArgs.cs
- SmtpSection.cs
- figurelength.cs
- CopyNamespacesAction.cs
- LiteralLink.cs
- BuildProvidersCompiler.cs
- MsmqBindingMonitor.cs
- OletxDependentTransaction.cs
- COSERVERINFO.cs
- TransformConverter.cs
- FieldMetadata.cs
- CaseInsensitiveComparer.cs
- XmlNotation.cs
- SweepDirectionValidation.cs
- HostedHttpTransportManager.cs
- SessionPageStatePersister.cs
- DataFormats.cs
- SystemInfo.cs
- UnsafeNativeMethodsPenimc.cs
- CodeSubDirectory.cs
- EventLogQuery.cs
- RoleGroup.cs
- AuthenticatedStream.cs
- ActiveDocumentEvent.cs
- coordinatorfactory.cs
- XPathItem.cs
- DispatcherSynchronizationContext.cs
- Boolean.cs
- DataGridCell.cs
- PolicyChain.cs
- SecureUICommand.cs
- SchemaObjectWriter.cs
- PointCollectionConverter.cs
- DrawingAttributeSerializer.cs
- XMLUtil.cs
- BindingContext.cs
- PassportPrincipal.cs
- HttpSessionStateBase.cs
- OpacityConverter.cs
- PowerStatus.cs
- SerializationAttributes.cs
- HttpProcessUtility.cs
- XmlUnspecifiedAttribute.cs
- PathGeometry.cs
- BmpBitmapDecoder.cs
- SubclassTypeValidator.cs
- RawStylusInput.cs
- SqlCacheDependencyDatabase.cs
- DescendantQuery.cs
- FormsAuthenticationConfiguration.cs
- CodeArgumentReferenceExpression.cs
- SchemaCollectionCompiler.cs
- CompiledQuery.cs
- XmlMessageFormatter.cs
- AtomMaterializerLog.cs
- lengthconverter.cs
- HMACMD5.cs
- LinkedDataMemberFieldEditor.cs
- SQLInt32.cs
- RemotingException.cs
- SHA1.cs
- MailDefinition.cs
- RowToParametersTransformer.cs