Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / Win32Providers / MS / Internal / AutomationProxies / WindowsStartMenu.cs / 1305600 / 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
- DomNameTable.cs
- ReflectionHelper.cs
- BuildManagerHost.cs
- SspiHelper.cs
- CustomErrorCollection.cs
- AutoCompleteStringCollection.cs
- ProxyAttribute.cs
- WorkflowMarkupSerializationProvider.cs
- _SecureChannel.cs
- KnownTypes.cs
- SerializationEventsCache.cs
- GenericIdentity.cs
- TableItemPatternIdentifiers.cs
- ComboBoxRenderer.cs
- TemplatePagerField.cs
- Solver.cs
- Itemizer.cs
- Drawing.cs
- XmlAtomicValue.cs
- XmlSerializerFactory.cs
- XmlMapping.cs
- LinqDataSourceUpdateEventArgs.cs
- TableLayout.cs
- Rfc2898DeriveBytes.cs
- Expression.DebuggerProxy.cs
- SocketStream.cs
- SqlBooleanizer.cs
- SystemIPAddressInformation.cs
- RoutedEventHandlerInfo.cs
- SchemaInfo.cs
- UIElement3D.cs
- CharacterBuffer.cs
- DynamicContractTypeBuilder.cs
- AuthStoreRoleProvider.cs
- CodeDefaultValueExpression.cs
- StylusButtonCollection.cs
- RubberbandSelector.cs
- PatternMatcher.cs
- InitializerFacet.cs
- HttpModuleCollection.cs
- StreamWriter.cs
- PreProcessInputEventArgs.cs
- ToolStripLocationCancelEventArgs.cs
- RecognizedAudio.cs
- PixelShader.cs
- ListBase.cs
- DataGridViewCellValidatingEventArgs.cs
- DataGridViewComboBoxCell.cs
- JavaScriptString.cs
- RegistrationServices.cs
- XmlSyndicationContent.cs
- WorkflowRuntimeServiceElement.cs
- _FtpDataStream.cs
- Pen.cs
- ViewSimplifier.cs
- SelectorItemAutomationPeer.cs
- SiteMapPath.cs
- XMLUtil.cs
- HttpListenerResponse.cs
- ProtocolsConfigurationHandler.cs
- ListViewCommandEventArgs.cs
- OleDbPropertySetGuid.cs
- CodeAccessSecurityEngine.cs
- Grant.cs
- SqlCommandSet.cs
- DoubleMinMaxAggregationOperator.cs
- DataStreams.cs
- LogSwitch.cs
- GeometryGroup.cs
- XmlIgnoreAttribute.cs
- NegotiateStream.cs
- PrefixHandle.cs
- MarkupCompilePass1.cs
- TypeNameConverter.cs
- VirtualPathUtility.cs
- AssemblyAttributes.cs
- IPEndPointCollection.cs
- ExtensionSimplifierMarkupObject.cs
- MenuItemStyle.cs
- GridViewRow.cs
- DataGridViewIntLinkedList.cs
- StringToken.cs
- SecurityTokenAuthenticator.cs
- ToolStripItem.cs
- HtmlEncodedRawTextWriter.cs
- LayoutUtils.cs
- CqlQuery.cs
- DynamicPropertyHolder.cs
- TraceContextEventArgs.cs
- EDesignUtil.cs
- DataTemplateKey.cs
- NavigatorOutput.cs
- MergeLocalizationDirectives.cs
- Transform3D.cs
- IndexObject.cs
- ToolBarButtonDesigner.cs
- DbMetaDataCollectionNames.cs
- PatternMatcher.cs
- JsonQNameDataContract.cs
- altserialization.cs