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
- CurrentChangingEventArgs.cs
- ellipse.cs
- FileRecordSequence.cs
- WrappedKeySecurityTokenParameters.cs
- CodeSnippetCompileUnit.cs
- SafeEventHandle.cs
- _SpnDictionary.cs
- HttpDebugHandler.cs
- PropertyGridView.cs
- _DisconnectOverlappedAsyncResult.cs
- CoTaskMemHandle.cs
- DataTableReader.cs
- FormatterServicesNoSerializableCheck.cs
- NTAccount.cs
- ResizingMessageFilter.cs
- WindowsListViewItem.cs
- ComponentResourceKeyConverter.cs
- Sentence.cs
- Timer.cs
- XamlParser.cs
- TimeSpanMinutesConverter.cs
- BuildManagerHost.cs
- EpmTargetPathSegment.cs
- UnicodeEncoding.cs
- Speller.cs
- Speller.cs
- GrammarBuilderRuleRef.cs
- BeginCreateSecurityTokenRequest.cs
- AssemblyHelper.cs
- FloaterBaseParaClient.cs
- ImageListUtils.cs
- XmlUrlResolver.cs
- AppDomain.cs
- Attributes.cs
- AssemblyNameProxy.cs
- WebPartCatalogCloseVerb.cs
- BindingGroup.cs
- ExpressionServices.cs
- IssuanceLicense.cs
- DefaultValueConverter.cs
- EntityStoreSchemaGenerator.cs
- ListSortDescription.cs
- TakeQueryOptionExpression.cs
- ProgressBar.cs
- TypeUnloadedException.cs
- AuthenticatingEventArgs.cs
- CryptoKeySecurity.cs
- UnionCqlBlock.cs
- FacetDescription.cs
- Statements.cs
- ListDependantCardsRequest.cs
- DesignTimeParseData.cs
- ConfigXmlElement.cs
- CommonDialog.cs
- TextEditorMouse.cs
- FontUnitConverter.cs
- UntypedNullExpression.cs
- CompilerLocalReference.cs
- Animatable.cs
- RegistrationContext.cs
- DataStorage.cs
- OciHandle.cs
- TextChangedEventArgs.cs
- ISCIIEncoding.cs
- XmlUtil.cs
- SystemException.cs
- MethodExpr.cs
- DataStreams.cs
- TransformPattern.cs
- OLEDB_Enum.cs
- ExeContext.cs
- RelationshipDetailsCollection.cs
- QilStrConcatenator.cs
- CodeExporter.cs
- Pens.cs
- LocalIdKeyIdentifierClause.cs
- ProgressBarAutomationPeer.cs
- AnimatedTypeHelpers.cs
- MimeParameter.cs
- PathSegmentCollection.cs
- TypeConverter.cs
- SerialErrors.cs
- TextTrailingCharacterEllipsis.cs
- SystemUdpStatistics.cs
- TextEffect.cs
- ScrollChrome.cs
- FilterRepeater.cs
- ScriptControlManager.cs
- TextBoxBase.cs
- SQLMembershipProvider.cs
- PointF.cs
- ProvidersHelper.cs
- DocumentSchemaValidator.cs
- SchemaNamespaceManager.cs
- SystemUnicastIPAddressInformation.cs
- mactripleDES.cs
- RowsCopiedEventArgs.cs
- SqlBuilder.cs
- SamlAction.cs
- ExpressionBuilder.cs