Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- OrderByExpression.cs
- ImageList.cs
- SiteMapNodeItem.cs
- SqlUtil.cs
- AssemblyResolver.cs
- TypeBuilder.cs
- Matrix.cs
- _NtlmClient.cs
- XmlBufferReader.cs
- StoreItemCollection.cs
- TreeNodeClickEventArgs.cs
- OleDbConnectionInternal.cs
- PowerModeChangedEventArgs.cs
- Binding.cs
- MapPathBasedVirtualPathProvider.cs
- BreakRecordTable.cs
- CustomCredentialPolicy.cs
- XmlReflectionImporter.cs
- base64Transforms.cs
- DecoderNLS.cs
- SqlDesignerDataSourceView.cs
- PageTheme.cs
- SQLByte.cs
- ReliableDuplexSessionChannel.cs
- EpmAttributeNameBuilder.cs
- IriParsingElement.cs
- TabControlDesigner.cs
- SerializationSectionGroup.cs
- TableLayoutCellPaintEventArgs.cs
- TextEndOfSegment.cs
- XPathPatternBuilder.cs
- ObjRef.cs
- CapabilitiesUse.cs
- TableLayoutPanelCellPosition.cs
- FakeModelItemImpl.cs
- Models.cs
- BehaviorEditorPart.cs
- COM2ComponentEditor.cs
- CustomBinding.cs
- BitmapFrameDecode.cs
- PackageFilter.cs
- CompensableActivity.cs
- CryptoHandle.cs
- DataTrigger.cs
- WaveHeader.cs
- UpdateCommandGenerator.cs
- GridViewRowPresenter.cs
- SymbolEqualComparer.cs
- __Filters.cs
- URLIdentityPermission.cs
- DateTimeValueSerializerContext.cs
- ObjectCloneHelper.cs
- IndexExpression.cs
- PropertyPanel.cs
- _HelperAsyncResults.cs
- Roles.cs
- PerformanceCountersBase.cs
- Timer.cs
- BinHexEncoder.cs
- TextEffect.cs
- TableSectionStyle.cs
- EllipseGeometry.cs
- CommandEventArgs.cs
- IndependentlyAnimatedPropertyMetadata.cs
- CacheSection.cs
- PopupRootAutomationPeer.cs
- ClientRoleProvider.cs
- SafeTokenHandle.cs
- SplitterPanel.cs
- SqlDataSourceDesigner.cs
- ProjectionCamera.cs
- NamespaceInfo.cs
- FastEncoder.cs
- ClusterRegistryConfigurationProvider.cs
- PreviewPageInfo.cs
- InvokeAction.cs
- CollectionsUtil.cs
- StyleSelector.cs
- ObjectContextServiceProvider.cs
- SpeechRecognizer.cs
- WebBrowserSiteBase.cs
- InkCanvas.cs
- EntityStoreSchemaGenerator.cs
- StateMachineHistory.cs
- FixedSOMElement.cs
- EntityDataSourceDesigner.cs
- UnsafeNativeMethods.cs
- DelayDesigner.cs
- SignatureDescription.cs
- ErrorHandler.cs
- MergeFailedEvent.cs
- PenLineJoinValidation.cs
- KernelTypeValidation.cs
- RenderOptions.cs
- ControlUtil.cs
- XmlObjectSerializerReadContextComplex.cs
- HebrewNumber.cs
- BehaviorEditorPart.cs
- LocalizedNameDescriptionPair.cs
- XmlSchemaComplexType.cs