Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- InputProcessorProfilesLoader.cs
- PropertyNames.cs
- PenThread.cs
- MessageDescription.cs
- __Error.cs
- ExpressionBuilder.cs
- SerialPinChanges.cs
- ExtendedPropertyDescriptor.cs
- PageAsyncTaskManager.cs
- CodeDelegateInvokeExpression.cs
- RowBinding.cs
- ServiceDebugElement.cs
- ProgressBar.cs
- MethodToken.cs
- ToolbarAUtomationPeer.cs
- ComboBox.cs
- BaseCAMarshaler.cs
- LogWriteRestartAreaState.cs
- NumericUpDownAccelerationCollection.cs
- ObjectViewListener.cs
- SubclassTypeValidatorAttribute.cs
- SafeNativeMethodsOther.cs
- SimpleType.cs
- SchemaLookupTable.cs
- BitmapEffectGroup.cs
- IndexedEnumerable.cs
- URLMembershipCondition.cs
- ToolboxItemFilterAttribute.cs
- RegularExpressionValidator.cs
- QilSortKey.cs
- ClientSponsor.cs
- SessionParameter.cs
- _NetworkingPerfCounters.cs
- AnyReturnReader.cs
- ExpressionPrinter.cs
- EntityFunctions.cs
- FlagPanel.cs
- GroupBoxDesigner.cs
- WsdlWriter.cs
- RegexMatch.cs
- ScrollChrome.cs
- FileChangesMonitor.cs
- ScriptingProfileServiceSection.cs
- DrawingContextDrawingContextWalker.cs
- Compilation.cs
- TCPListener.cs
- DataColumnChangeEvent.cs
- XamlBrushSerializer.cs
- Schema.cs
- ToolStripSplitStackLayout.cs
- Rijndael.cs
- DesignerAttribute.cs
- EntityException.cs
- DbgUtil.cs
- DeferredElementTreeState.cs
- DataConnectionHelper.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DbModificationCommandTree.cs
- SafeHandles.cs
- ViewLoader.cs
- ListParagraph.cs
- FrameworkObject.cs
- SqlDataSourceConfigureFilterForm.cs
- Visitors.cs
- AspNetCacheProfileAttribute.cs
- SQLChars.cs
- Label.cs
- ImageField.cs
- AppSettingsExpressionBuilder.cs
- DbConnectionPool.cs
- OnOperation.cs
- Cloud.cs
- _DomainName.cs
- ChtmlTextWriter.cs
- ToolStripRenderEventArgs.cs
- ParserContext.cs
- RtfControls.cs
- HWStack.cs
- _DynamicWinsockMethods.cs
- UnicastIPAddressInformationCollection.cs
- TransformationRules.cs
- Message.cs
- CodeTypeDelegate.cs
- ExpressionParser.cs
- PopupRoot.cs
- WebBrowserNavigatedEventHandler.cs
- List.cs
- altserialization.cs
- XmlCodeExporter.cs
- SourceChangedEventArgs.cs
- Point3DCollectionConverter.cs
- WindowsGraphics.cs
- DataGridTextBoxColumn.cs
- SafeNativeMethods.cs
- DefaultParameterValueAttribute.cs
- PointAnimationUsingPath.cs
- AssemblyAssociatedContentFileAttribute.cs
- CollectionChangeEventArgs.cs
- ComponentEvent.cs
- RemotingException.cs