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
- HtmlElementErrorEventArgs.cs
- HttpListenerResponse.cs
- RootProfilePropertySettingsCollection.cs
- SelectedGridItemChangedEvent.cs
- Literal.cs
- RuntimeComponentFilter.cs
- NamedPermissionSet.cs
- ControlCollection.cs
- Operator.cs
- CalendarTable.cs
- FontFamilyConverter.cs
- MappingItemCollection.cs
- DirectionalLight.cs
- ContainerUIElement3D.cs
- ConsumerConnectionPointCollection.cs
- ReflectionServiceProvider.cs
- TypeHelper.cs
- GridLengthConverter.cs
- TabletDevice.cs
- XmlValidatingReaderImpl.cs
- TextContainerChangedEventArgs.cs
- DataGridViewAdvancedBorderStyle.cs
- ManagementExtension.cs
- ViewStateModeByIdAttribute.cs
- ByteStreamMessageEncoderFactory.cs
- TypeFieldSchema.cs
- DataGridViewColumnEventArgs.cs
- SplitterEvent.cs
- PaperSize.cs
- SecurityAlgorithmSuiteConverter.cs
- EntityDataSourceContextCreatedEventArgs.cs
- UTF8Encoding.cs
- TransactionManager.cs
- PerfCounters.cs
- FormParameter.cs
- DataViewManager.cs
- ISAPIWorkerRequest.cs
- ExecutedRoutedEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- TextProperties.cs
- PieceNameHelper.cs
- SchemaMerger.cs
- AssertSection.cs
- CorrelationTokenInvalidatedHandler.cs
- OleDbException.cs
- ToolBarOverflowPanel.cs
- StylusPlugInCollection.cs
- InputScopeManager.cs
- ITextView.cs
- String.cs
- TagNameToTypeMapper.cs
- FusionWrap.cs
- AsyncOperationManager.cs
- GenericNameHandler.cs
- UnsafeNativeMethodsPenimc.cs
- Int32RectValueSerializer.cs
- WarningException.cs
- ZeroOpNode.cs
- _TransmitFileOverlappedAsyncResult.cs
- ToolBar.cs
- EllipseGeometry.cs
- ScriptingProfileServiceSection.cs
- SchemaTableOptionalColumn.cs
- CounterSampleCalculator.cs
- NavigationHelper.cs
- IProducerConsumerCollection.cs
- MultitargetingHelpers.cs
- UserControl.cs
- PriorityRange.cs
- DocumentPageTextView.cs
- ISFTagAndGuidCache.cs
- XmlConvert.cs
- Separator.cs
- KerberosReceiverSecurityToken.cs
- MaskedTextBoxTextEditor.cs
- SchemaTableOptionalColumn.cs
- PauseStoryboard.cs
- _BufferOffsetSize.cs
- CultureSpecificCharacterBufferRange.cs
- ZoneLinkButton.cs
- ProcessHostConfigUtils.cs
- AnonymousIdentificationSection.cs
- KeyNotFoundException.cs
- XmlDocument.cs
- ListParaClient.cs
- SapiRecoContext.cs
- DesignSurfaceServiceContainer.cs
- CodeAttributeArgument.cs
- OdbcDataReader.cs
- FixedSchema.cs
- TextWriter.cs
- AdapterUtil.cs
- TypeBuilder.cs
- ObjectReaderCompiler.cs
- SerializationObjectManager.cs
- WebPartVerbCollection.cs
- IOException.cs
- PolyLineSegmentFigureLogic.cs
- GridSplitterAutomationPeer.cs
- ResolveRequestResponseAsyncResult.cs