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
- SubMenuStyleCollection.cs
- ZipFileInfo.cs
- wmiprovider.cs
- Pkcs7Recipient.cs
- XPathItem.cs
- ButtonPopupAdapter.cs
- ChangeInterceptorAttribute.cs
- SelectionGlyph.cs
- CompositeKey.cs
- TextElementEnumerator.cs
- ConsoleCancelEventArgs.cs
- Int32.cs
- WaitingCursor.cs
- _ScatterGatherBuffers.cs
- ArgIterator.cs
- LinqDataSourceHelper.cs
- ReadContentAsBinaryHelper.cs
- HttpResponseInternalWrapper.cs
- ManagementBaseObject.cs
- LayoutDump.cs
- SqlNode.cs
- SpecialNameAttribute.cs
- BrowserCapabilitiesCompiler.cs
- FontNamesConverter.cs
- RegexRunnerFactory.cs
- HtmlPhoneCallAdapter.cs
- RoleManagerEventArgs.cs
- OleDbConnection.cs
- StorageBasedPackageProperties.cs
- NamedPermissionSet.cs
- TranslateTransform3D.cs
- BitmapInitialize.cs
- Themes.cs
- TemplateField.cs
- WebPartTransformer.cs
- JsonReader.cs
- HtmlTableRow.cs
- util.cs
- LoadMessageLogger.cs
- EventDrivenDesigner.cs
- SQLDouble.cs
- GeneralTransform3DGroup.cs
- HttpRawResponse.cs
- NameTable.cs
- IERequestCache.cs
- WindowsPen.cs
- PersonalizablePropertyEntry.cs
- SerializationInfoEnumerator.cs
- MetafileHeaderWmf.cs
- BuildTopDownAttribute.cs
- DataAccessException.cs
- EditorPart.cs
- SafeUserTokenHandle.cs
- WebServiceMethodData.cs
- LogConverter.cs
- VectorCollection.cs
- WmpBitmapDecoder.cs
- TagNameToTypeMapper.cs
- SqlFormatter.cs
- EtwTrackingBehaviorElement.cs
- XmlSchemaAttributeGroup.cs
- TypeBrowserDialog.cs
- RecordManager.cs
- UndoManager.cs
- FormCollection.cs
- ContentElementAutomationPeer.cs
- WebControl.cs
- AllMembershipCondition.cs
- InputProcessorProfiles.cs
- ProjectionCamera.cs
- Control.cs
- InvokeHandlers.cs
- ProfilePropertySettings.cs
- DBDataPermission.cs
- Parser.cs
- SchemaNames.cs
- ResolveNameEventArgs.cs
- BulletChrome.cs
- CorrelationValidator.cs
- TextCompositionManager.cs
- CacheMode.cs
- ExternalDataExchangeService.cs
- Grant.cs
- PageCatalogPart.cs
- NotImplementedException.cs
- Wildcard.cs
- ZipFileInfo.cs
- WinInetCache.cs
- DataContractSerializerSection.cs
- OleDbPermission.cs
- StringBuilder.cs
- PointLightBase.cs
- InheritanceAttribute.cs
- HttpChannelHelper.cs
- XmlILConstructAnalyzer.cs
- PrintDialogException.cs
- SystemDropShadowChrome.cs
- ValidatingReaderNodeData.cs
- AssociationType.cs
- ResourceDefaultValueAttribute.cs