Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DnsElement.cs
- FixedSOMElement.cs
- ArithmeticException.cs
- CacheMemory.cs
- Geometry3D.cs
- InstanceDescriptor.cs
- BufferedGraphicsManager.cs
- PeerNameRecord.cs
- TouchFrameEventArgs.cs
- BlobPersonalizationState.cs
- TextElementEnumerator.cs
- ConfigurationStrings.cs
- TableCell.cs
- OletxCommittableTransaction.cs
- LogSwitch.cs
- X509ThumbprintKeyIdentifierClause.cs
- StackSpiller.Temps.cs
- InkCanvas.cs
- KeySplineConverter.cs
- HandlerBase.cs
- StringOutput.cs
- ConnectionConsumerAttribute.cs
- LinkTarget.cs
- LocalizableResourceBuilder.cs
- CqlParser.cs
- MessageEncodingBindingElementImporter.cs
- InvalidChannelBindingException.cs
- SqlProvider.cs
- XmlLinkedNode.cs
- EntityObject.cs
- SmiXetterAccessMap.cs
- XmlBinaryReader.cs
- HwndHostAutomationPeer.cs
- ProfileServiceManager.cs
- UnknownMessageReceivedEventArgs.cs
- AutomationPatternInfo.cs
- QueueAccessMode.cs
- HtmlListAdapter.cs
- DelayLoadType.cs
- AssemblyAssociatedContentFileAttribute.cs
- _ConnectionGroup.cs
- CompilationSection.cs
- HierarchicalDataSourceControl.cs
- IChannel.cs
- DbConnectionFactory.cs
- WebServiceParameterData.cs
- DbParameterCollection.cs
- TextClipboardData.cs
- WebBrowserDocumentCompletedEventHandler.cs
- webbrowsersite.cs
- GridViewUpdatedEventArgs.cs
- TextSimpleMarkerProperties.cs
- TreeViewImageGenerator.cs
- ContextDataSource.cs
- XmlDocumentType.cs
- SHA1.cs
- Peer.cs
- ComponentChangingEvent.cs
- RemotingConfigParser.cs
- StrokeNodeOperations.cs
- RemotingConfiguration.cs
- TCPClient.cs
- ResourcePart.cs
- UInt16Converter.cs
- SecurityHelper.cs
- XhtmlBasicLinkAdapter.cs
- ProfessionalColors.cs
- TextRunCache.cs
- Literal.cs
- MimeParameter.cs
- WmlCommandAdapter.cs
- ContentDisposition.cs
- SingleTagSectionHandler.cs
- XmlSchemaComplexContentExtension.cs
- HtmlInputControl.cs
- ToolStripDesignerAvailabilityAttribute.cs
- BitmapEffectInput.cs
- CacheEntry.cs
- BoolLiteral.cs
- RoutedEvent.cs
- AutomationAttributeInfo.cs
- StylusEventArgs.cs
- CompiledRegexRunnerFactory.cs
- ParseNumbers.cs
- RuntimeResourceSet.cs
- Clipboard.cs
- Vector.cs
- RsaSecurityKey.cs
- BadImageFormatException.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- PermissionRequestEvidence.cs
- DateTimeValueSerializerContext.cs
- PackWebResponse.cs
- altserialization.cs
- XmlArrayAttribute.cs
- PageRouteHandler.cs
- ToolboxComponentsCreatingEventArgs.cs
- TextContainer.cs
- Base64Encoding.cs
- DefaultSettingsSection.cs