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
- XmlTextWriter.cs
- GridViewPageEventArgs.cs
- DownloadProgressEventArgs.cs
- PreDigestedSignedInfo.cs
- Track.cs
- sqlmetadatafactory.cs
- isolationinterop.cs
- InvocationExpression.cs
- MatrixCamera.cs
- ConfigurationException.cs
- NativeCompoundFileAPIs.cs
- DataGridHeaderBorder.cs
- ArraySortHelper.cs
- __Error.cs
- StringPropertyBuilder.cs
- CodeDirectiveCollection.cs
- ToolStripMenuItemDesigner.cs
- Triplet.cs
- xdrvalidator.cs
- WebErrorHandler.cs
- SchemaCollectionCompiler.cs
- lengthconverter.cs
- CacheMode.cs
- TextFormatterImp.cs
- ViewStateException.cs
- AssociationSetMetadata.cs
- AssertSection.cs
- HyperLink.cs
- Char.cs
- SoapMessage.cs
- ArrayConverter.cs
- UndoEngine.cs
- ColumnHeader.cs
- InternalUserCancelledException.cs
- DbConnectionOptions.cs
- RegisteredArrayDeclaration.cs
- EmptyStringExpandableObjectConverter.cs
- ClientRoleProvider.cs
- CmsInterop.cs
- WindowsFormsHost.cs
- PersistenceProviderBehavior.cs
- SiteIdentityPermission.cs
- EventTask.cs
- FixedSOMLineCollection.cs
- BasePropertyDescriptor.cs
- WorkerRequest.cs
- EngineSiteSapi.cs
- ErrorFormatter.cs
- Inflater.cs
- UrlPropertyAttribute.cs
- RedistVersionInfo.cs
- SHA1CryptoServiceProvider.cs
- InstanceOwnerException.cs
- COM2ExtendedUITypeEditor.cs
- ColorComboBox.cs
- Model3D.cs
- Color.cs
- MultipleViewProviderWrapper.cs
- AddingNewEventArgs.cs
- PreProcessor.cs
- XmlCountingReader.cs
- UnsafeNetInfoNativeMethods.cs
- util.cs
- HasCopySemanticsAttribute.cs
- Material.cs
- WebException.cs
- ConfigurationSection.cs
- securitycriticaldata.cs
- SoapAttributes.cs
- TreeWalkHelper.cs
- Vector3DConverter.cs
- ResourceSetExpression.cs
- CodeParameterDeclarationExpression.cs
- ServiceHttpHandlerFactory.cs
- CheckedListBox.cs
- NGCPageContentSerializerAsync.cs
- TypedColumnHandler.cs
- BuilderElements.cs
- _Connection.cs
- PolyBezierSegment.cs
- TreeNodeCollection.cs
- WebPartEventArgs.cs
- BaseComponentEditor.cs
- mactripleDES.cs
- ModelTreeEnumerator.cs
- UnsupportedPolicyOptionsException.cs
- PersonalizationStateInfoCollection.cs
- UrlPath.cs
- X509SecurityTokenProvider.cs
- DataGridViewRowCollection.cs
- WebPartAddingEventArgs.cs
- PtsCache.cs
- COSERVERINFO.cs
- TimelineGroup.cs
- GridViewColumn.cs
- EntityException.cs
- XmlRawWriter.cs
- UpdatePanelTrigger.cs
- XamlReaderConstants.cs
- PropertyGridView.cs