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
- Header.cs
- XmlReturnWriter.cs
- DispatcherTimer.cs
- ServiceDesigner.cs
- CompilerResults.cs
- SQLUtility.cs
- ExpandCollapseIsCheckedConverter.cs
- SliderAutomationPeer.cs
- TreeViewImageKeyConverter.cs
- WebServiceErrorEvent.cs
- ColumnWidthChangedEvent.cs
- UnsettableComboBox.cs
- ActivitySurrogate.cs
- PropertyNames.cs
- Matrix3D.cs
- DataBoundControl.cs
- AppDomainUnloadedException.cs
- PersianCalendar.cs
- IteratorDescriptor.cs
- Codec.cs
- Literal.cs
- ProviderSettingsCollection.cs
- ServerIdentity.cs
- ProfileGroupSettings.cs
- GiveFeedbackEventArgs.cs
- MULTI_QI.cs
- ProfileManager.cs
- SynchronizationLockException.cs
- PropertyEntry.cs
- KeyToListMap.cs
- AnnotationAdorner.cs
- CodeVariableReferenceExpression.cs
- ClientScriptManagerWrapper.cs
- ReferenceEqualityComparer.cs
- ValidationErrorCollection.cs
- CodeChecksumPragma.cs
- NativeCompoundFileAPIs.cs
- OAVariantLib.cs
- ListManagerBindingsCollection.cs
- SiteMapNodeItem.cs
- DelegateTypeInfo.cs
- DataColumnMapping.cs
- RoleManagerModule.cs
- FramingFormat.cs
- BridgeDataRecord.cs
- QueryOptionExpression.cs
- EventRouteFactory.cs
- RemotingHelper.cs
- XmlSchemaExporter.cs
- UnsafeNativeMethods.cs
- GenerateHelper.cs
- DesignerCommandSet.cs
- InkCanvasFeedbackAdorner.cs
- NoClickablePointException.cs
- SimpleTextLine.cs
- ValidateNames.cs
- Transform3DGroup.cs
- CallbackTimeoutsElement.cs
- Soap.cs
- DetailsViewPageEventArgs.cs
- RemotingSurrogateSelector.cs
- ClientConvert.cs
- WaitHandle.cs
- CfgParser.cs
- SqlTypesSchemaImporter.cs
- TabletCollection.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- ObjectConverter.cs
- Italic.cs
- _IPv6Address.cs
- PathGeometry.cs
- DbParameterHelper.cs
- LinqDataSourceView.cs
- XPathNavigatorReader.cs
- GZipStream.cs
- RuleSetCollection.cs
- ItemCollectionEditor.cs
- XamlWriter.cs
- AccessDataSource.cs
- DataTransferEventArgs.cs
- SettingsPropertyCollection.cs
- Shared.cs
- TextSelectionProcessor.cs
- XmlSerializableServices.cs
- WebConfigurationHostFileChange.cs
- ByteConverter.cs
- CapabilitiesState.cs
- Decoder.cs
- MetadataPropertyCollection.cs
- ParentUndoUnit.cs
- ColorConverter.cs
- CapabilitiesRule.cs
- AlternateViewCollection.cs
- HttpModulesSection.cs
- precedingquery.cs
- OleDbCommandBuilder.cs
- ValidationRule.cs
- NegotiateStream.cs
- activationcontext.cs
- WpfXamlLoader.cs