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
- XmlCharCheckingWriter.cs
- KnownBoxes.cs
- InstanceLockQueryResult.cs
- Transform.cs
- FontNamesConverter.cs
- Stroke2.cs
- ReadOnlyHierarchicalDataSource.cs
- EntityStoreSchemaGenerator.cs
- X509Extension.cs
- ActivityBuilderXamlWriter.cs
- DbConnectionClosed.cs
- HtmlImageAdapter.cs
- DotExpr.cs
- IdleTimeoutMonitor.cs
- _FtpControlStream.cs
- SelectionItemProviderWrapper.cs
- AuthorizationRule.cs
- OleDbReferenceCollection.cs
- IISMapPath.cs
- httpserverutility.cs
- RawStylusActions.cs
- TypeConverterHelper.cs
- SerializerWriterEventHandlers.cs
- TextBoxLine.cs
- PathSegmentCollection.cs
- FastEncoderStatics.cs
- DataChangedEventManager.cs
- LeaseManager.cs
- PipeStream.cs
- PermissionToken.cs
- ListViewItem.cs
- DynamicRendererThreadManager.cs
- ToolStripButton.cs
- BinaryFormatterSinks.cs
- ProfileServiceManager.cs
- SqlDependency.cs
- ContentElement.cs
- PerformanceCounterPermission.cs
- TextCompositionEventArgs.cs
- RijndaelManaged.cs
- FontCacheLogic.cs
- Relationship.cs
- ServiceOperation.cs
- UpdateCommand.cs
- SqlMethods.cs
- DesignerOptionService.cs
- UniqueID.cs
- SystemException.cs
- StructuralCache.cs
- BitmapMetadata.cs
- TypeProvider.cs
- MemberProjectionIndex.cs
- TdsParserHelperClasses.cs
- FormViewUpdatedEventArgs.cs
- XmlHierarchicalEnumerable.cs
- WebEventCodes.cs
- EntityConnection.cs
- ListBoxItem.cs
- SspiWrapper.cs
- VoiceSynthesis.cs
- InternalBufferManager.cs
- AstTree.cs
- Accessible.cs
- precedingquery.cs
- TextRunCache.cs
- ComplexPropertyEntry.cs
- SuppressMessageAttribute.cs
- OperationPickerDialog.designer.cs
- EntityContainerEntitySet.cs
- WorkflowInstance.cs
- Emitter.cs
- UserNameSecurityTokenParameters.cs
- UnknownBitmapEncoder.cs
- TypePresenter.xaml.cs
- DeflateStream.cs
- MemberMemberBinding.cs
- StyleCollectionEditor.cs
- DetailsView.cs
- HtmlInputFile.cs
- DefaultValueAttribute.cs
- RequestCachePolicy.cs
- DocumentPageView.cs
- NativeActivityTransactionContext.cs
- LocatorBase.cs
- ListViewDeletedEventArgs.cs
- ErrorsHelper.cs
- DockPattern.cs
- InheritedPropertyDescriptor.cs
- WsdlBuildProvider.cs
- SchemaNamespaceManager.cs
- regiisutil.cs
- EpmSourcePathSegment.cs
- WebExceptionStatus.cs
- FileCodeGroup.cs
- EventProxy.cs
- LogicalCallContext.cs
- ListViewCommandEventArgs.cs
- FirstMatchCodeGroup.cs
- COM2ExtendedBrowsingHandler.cs
- ContentOperations.cs