Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- AsyncPostBackErrorEventArgs.cs
- WorkflowApplicationIdleEventArgs.cs
- Peer.cs
- DSASignatureFormatter.cs
- ControlParameter.cs
- DataTableNewRowEvent.cs
- ResourcePool.cs
- DrawingVisualDrawingContext.cs
- EdmSchemaAttribute.cs
- FutureFactory.cs
- ColumnTypeConverter.cs
- XmlNamedNodeMap.cs
- AppDomainShutdownMonitor.cs
- XmlChildEnumerator.cs
- StickyNote.cs
- EditorAttribute.cs
- CapabilitiesUse.cs
- SqlStatistics.cs
- TraceSection.cs
- FileBasedResourceGroveler.cs
- RoutedCommand.cs
- SHA256Managed.cs
- XslTransform.cs
- Activation.cs
- DockPanel.cs
- KeyBinding.cs
- CookieParameter.cs
- TimelineGroup.cs
- StringDictionary.cs
- PageVisual.cs
- ToolStripActionList.cs
- XPathQilFactory.cs
- IntSecurity.cs
- SizeAnimationClockResource.cs
- RequestCacheValidator.cs
- CompilerState.cs
- XPathDocumentIterator.cs
- FixedHyperLink.cs
- DataTableExtensions.cs
- InvariantComparer.cs
- TypeUnloadedException.cs
- FixedSOMPageElement.cs
- ToolStripItemRenderEventArgs.cs
- DoubleLinkListEnumerator.cs
- LongTypeConverter.cs
- InvokeWebServiceDesigner.cs
- AttributeCollection.cs
- TabControlAutomationPeer.cs
- CellParagraph.cs
- DataGridViewRowPostPaintEventArgs.cs
- TableLayoutStyleCollection.cs
- ParameterRetriever.cs
- RequestCacheManager.cs
- SerializerWriterEventHandlers.cs
- ClonableStack.cs
- ConnectionManagementElement.cs
- InterleavedZipPartStream.cs
- SqlBulkCopyColumnMappingCollection.cs
- DependencyPropertyChangedEventArgs.cs
- GridViewColumn.cs
- HitTestWithGeometryDrawingContextWalker.cs
- FileDialogCustomPlace.cs
- WarningException.cs
- _SecureChannel.cs
- RegisteredScript.cs
- ITreeGenerator.cs
- SoapObjectWriter.cs
- QueryProcessor.cs
- VectorValueSerializer.cs
- RequestChannelBinder.cs
- ResourceManagerWrapper.cs
- PtsPage.cs
- HandlerMappingMemo.cs
- ControlIdConverter.cs
- BufferedReadStream.cs
- PageThemeCodeDomTreeGenerator.cs
- DataGridParentRows.cs
- __TransparentProxy.cs
- CurrencyWrapper.cs
- Context.cs
- BitStack.cs
- MemberListBinding.cs
- ArcSegment.cs
- DateBoldEvent.cs
- XmlElementCollection.cs
- SiteMapNode.cs
- HitTestResult.cs
- TextureBrush.cs
- ZoomPercentageConverter.cs
- WeakReferenceEnumerator.cs
- ImageFormat.cs
- WizardForm.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- Matrix3D.cs
- NavigationProgressEventArgs.cs
- PatternMatcher.cs
- LockedBorderGlyph.cs
- HMACSHA384.cs
- XPathDescendantIterator.cs
- BeginCreateSecurityTokenRequest.cs