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
- BuildDependencySet.cs
- TemplateContentLoader.cs
- HopperCache.cs
- AlternationConverter.cs
- CustomErrorsSection.cs
- DataSourceHelper.cs
- DataSourceHelper.cs
- EntityContainerAssociationSet.cs
- MailAddressCollection.cs
- PrintDialog.cs
- ActivityTypeDesigner.xaml.cs
- ParsedAttributeCollection.cs
- PagesChangedEventArgs.cs
- StringKeyFrameCollection.cs
- StrokeCollection.cs
- TextSegment.cs
- RelationshipFixer.cs
- TargetParameterCountException.cs
- SafeEventLogWriteHandle.cs
- RectAnimationUsingKeyFrames.cs
- Padding.cs
- RC2CryptoServiceProvider.cs
- safesecurityhelperavalon.cs
- ReflectionUtil.cs
- SQLGuid.cs
- WindowsGraphics2.cs
- TypeInfo.cs
- ListItem.cs
- ReturnValue.cs
- InkCanvasFeedbackAdorner.cs
- ContainerParagraph.cs
- ObjectConverter.cs
- VerificationException.cs
- EventListener.cs
- XmlILCommand.cs
- ToolstripProfessionalRenderer.cs
- Divide.cs
- DockingAttribute.cs
- ObjectRef.cs
- QualificationDataItem.cs
- InstalledFontCollection.cs
- ValidatingReaderNodeData.cs
- RootDesignerSerializerAttribute.cs
- ProfileProvider.cs
- TickBar.cs
- TraceHandler.cs
- EllipseGeometry.cs
- TreeWalker.cs
- RectangleF.cs
- StandardOleMarshalObject.cs
- DelimitedListTraceListener.cs
- TextUtf8RawTextWriter.cs
- TextModifierScope.cs
- MessageLoggingFilterTraceRecord.cs
- DefaultProxySection.cs
- OrderToken.cs
- Logging.cs
- KeyGestureConverter.cs
- HttpAsyncResult.cs
- DiagnosticTrace.cs
- SqlRowUpdatedEvent.cs
- AdapterUtil.cs
- ProviderUtil.cs
- RoutedEventArgs.cs
- CacheRequest.cs
- CompositionTarget.cs
- DecoratedNameAttribute.cs
- IPGlobalProperties.cs
- BufferedGraphicsContext.cs
- Vector3DCollectionConverter.cs
- DesignerSerializationOptionsAttribute.cs
- BaseInfoTable.cs
- ProcessActivityTreeOptions.cs
- ProcessStartInfo.cs
- DBCSCodePageEncoding.cs
- OpCodes.cs
- CatalogZoneBase.cs
- HtmlInputHidden.cs
- NumberAction.cs
- ICspAsymmetricAlgorithm.cs
- PerfCounterSection.cs
- GetPageNumberCompletedEventArgs.cs
- SerializationSectionGroup.cs
- WCFBuildProvider.cs
- ConvertBinder.cs
- Pkcs9Attribute.cs
- QueryOpeningEnumerator.cs
- RtfControls.cs
- DictionaryEntry.cs
- CornerRadiusConverter.cs
- WmlValidationSummaryAdapter.cs
- BamlWriter.cs
- LingerOption.cs
- HttpConfigurationSystem.cs
- TextCharacters.cs
- HideDisabledControlAdapter.cs
- XmlAttribute.cs
- ObjectListDataBindEventArgs.cs
- DebuggerAttributes.cs
- _BaseOverlappedAsyncResult.cs