Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LookupNode.cs
- TemplatePropertyEntry.cs
- DrawingBrush.cs
- TargetInvocationException.cs
- SafeLibraryHandle.cs
- SchemaType.cs
- Avt.cs
- TraceHwndHost.cs
- IImplicitResourceProvider.cs
- SystemColors.cs
- FontDriver.cs
- DataGridViewCellValidatingEventArgs.cs
- CodeAttachEventStatement.cs
- WebBrowser.cs
- DocumentPageHost.cs
- LoginCancelEventArgs.cs
- BitmapEffectGroup.cs
- ActiveXSite.cs
- odbcmetadatacollectionnames.cs
- CodeDomSerializerBase.cs
- listitem.cs
- Button.cs
- UserPreferenceChangingEventArgs.cs
- _FixedSizeReader.cs
- ObjectDataSourceDesigner.cs
- ResourceDisplayNameAttribute.cs
- MediaContextNotificationWindow.cs
- PrinterSettings.cs
- GacUtil.cs
- VSWCFServiceContractGenerator.cs
- DetailsViewRowCollection.cs
- XsdBuildProvider.cs
- MTConfigUtil.cs
- XPathBinder.cs
- EventNotify.cs
- CrossSiteScriptingValidation.cs
- HtmlTableCellCollection.cs
- GridViewSelectEventArgs.cs
- X509SecurityToken.cs
- DrawingGroup.cs
- Int64Converter.cs
- RayHitTestParameters.cs
- TypeRestriction.cs
- SHA1.cs
- SequenceDesigner.cs
- InfocardExtendedInformationEntry.cs
- SourceFileBuildProvider.cs
- TdsParserSessionPool.cs
- WeakHashtable.cs
- LazyTextWriterCreator.cs
- DateTimeSerializationSection.cs
- ColumnMapTranslator.cs
- LinkClickEvent.cs
- TransformPattern.cs
- CodeCatchClause.cs
- WebControlsSection.cs
- PropertyMetadata.cs
- WindowsAuthenticationEventArgs.cs
- UrlMapping.cs
- ObjectQueryProvider.cs
- EntityConnectionStringBuilder.cs
- WorkflowApplicationUnloadedException.cs
- NetworkCredential.cs
- HttpWrapper.cs
- RedBlackList.cs
- ControlCommandSet.cs
- Rfc2898DeriveBytes.cs
- XmlNode.cs
- TextHidden.cs
- MetafileHeaderWmf.cs
- VariableExpressionConverter.cs
- WebDescriptionAttribute.cs
- SpeechAudioFormatInfo.cs
- TextParentUndoUnit.cs
- UrlAuthFailedErrorFormatter.cs
- SimpleBitVector32.cs
- EtwTrace.cs
- PerfCounterSection.cs
- ScrollViewer.cs
- SqlXml.cs
- MessageSecurityProtocolFactory.cs
- BackgroundWorker.cs
- ActionFrame.cs
- wmiprovider.cs
- DesignerDataStoredProcedure.cs
- DataGridViewRowHeaderCell.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- FormViewCommandEventArgs.cs
- WmfPlaceableFileHeader.cs
- PublisherMembershipCondition.cs
- SqlFunctions.cs
- BaseAddressPrefixFilterElementCollection.cs
- Screen.cs
- WebPartVerbsEventArgs.cs
- KeyNotFoundException.cs
- UserMapPath.cs
- AsyncPostBackErrorEventArgs.cs
- RuleSetCollection.cs
- TripleDES.cs
- XmlSchemaImporter.cs