Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebBrowserEvent.cs
- SurrogateSelector.cs
- DetailsViewPageEventArgs.cs
- Control.cs
- DbgCompiler.cs
- TextInfo.cs
- SettingsAttributes.cs
- AdornerLayer.cs
- _SSPISessionCache.cs
- MailDefinition.cs
- MenuItemCollectionEditor.cs
- SaveFileDialog.cs
- WeakEventManager.cs
- ConfigViewGenerator.cs
- MetabaseServerConfig.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- XamlPointCollectionSerializer.cs
- ApplicationGesture.cs
- DBSchemaRow.cs
- MetadataLocation.cs
- ItemCollection.cs
- ActivityStateQuery.cs
- DateRangeEvent.cs
- RenderTargetBitmap.cs
- Queue.cs
- NullableLongAverageAggregationOperator.cs
- EntityDataSourceColumn.cs
- ProfilePropertySettingsCollection.cs
- DataSourceCache.cs
- MeshGeometry3D.cs
- ConfigXmlAttribute.cs
- ImageSourceValueSerializer.cs
- HelpExampleGenerator.cs
- CodeStatement.cs
- SmiContextFactory.cs
- ClientSideQueueItem.cs
- InvalidFilterCriteriaException.cs
- LogManagementAsyncResult.cs
- IndexedGlyphRun.cs
- TimeSpan.cs
- PrintDialog.cs
- ProfileSection.cs
- RoutedEventConverter.cs
- ClickablePoint.cs
- XmlSchemaCollection.cs
- ProtocolViolationException.cs
- DataControlReference.cs
- WindowsIdentity.cs
- WebHttpSecurityElement.cs
- ProtocolProfile.cs
- QilNode.cs
- DataGridViewRowConverter.cs
- ListViewItem.cs
- XDRSchema.cs
- Inline.cs
- ConfigurationFileMap.cs
- CompressEmulationStream.cs
- TextEffect.cs
- AsymmetricKeyExchangeFormatter.cs
- Command.cs
- DbModificationClause.cs
- HttpListenerContext.cs
- TextEndOfLine.cs
- RegistryKey.cs
- PassportAuthentication.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DesignerVerbCollection.cs
- DbTypeMap.cs
- BindingExpressionBase.cs
- LineServicesRun.cs
- SQLMoney.cs
- DetailsViewUpdatedEventArgs.cs
- CommandBinding.cs
- ScriptResourceHandler.cs
- EdmToObjectNamespaceMap.cs
- WindowsStartMenu.cs
- DataServiceStreamProviderWrapper.cs
- ObjectDataSourceEventArgs.cs
- DataControlPagerLinkButton.cs
- CodeAttributeArgument.cs
- DataGridViewColumnCollection.cs
- Color.cs
- ItemDragEvent.cs
- BufferAllocator.cs
- ResXResourceWriter.cs
- PathFigureCollection.cs
- TimeManager.cs
- _UriSyntax.cs
- ResolveNameEventArgs.cs
- FragmentNavigationEventArgs.cs
- ViewUtilities.cs
- EntityType.cs
- SqlProviderUtilities.cs
- ArglessEventHandlerProxy.cs
- UTF8Encoding.cs
- TreeNodeConverter.cs
- XmlRootAttribute.cs
- WebPartAddingEventArgs.cs
- VariableQuery.cs
- StringFunctions.cs