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
- ToolStripItemTextRenderEventArgs.cs
- JoinSymbol.cs
- MailMessageEventArgs.cs
- CultureInfo.cs
- TraceAsyncResult.cs
- ChannelHandler.cs
- MultiTrigger.cs
- ParserStreamGeometryContext.cs
- SystemIPGlobalProperties.cs
- SqlXmlStorage.cs
- RadioButton.cs
- Operand.cs
- XmlSchemaSet.cs
- JsonWriterDelegator.cs
- DataPagerFieldCollection.cs
- DataFieldEditor.cs
- OutputWindow.cs
- WebServiceParameterData.cs
- clipboard.cs
- FunctionGenerator.cs
- DataRowChangeEvent.cs
- ArgumentNullException.cs
- ProviderSettings.cs
- ToolStripPanel.cs
- BaseCollection.cs
- SyndicationDeserializer.cs
- XmlNodeWriter.cs
- TempFiles.cs
- ManagementClass.cs
- LogAppendAsyncResult.cs
- CompleteWizardStep.cs
- SHA256.cs
- Membership.cs
- HtmlHistory.cs
- RC2CryptoServiceProvider.cs
- ResponseStream.cs
- ClientOperationFormatterProvider.cs
- CodeEventReferenceExpression.cs
- ProgressBarHighlightConverter.cs
- FirstQueryOperator.cs
- CollectionEditorDialog.cs
- ListViewItem.cs
- OracleRowUpdatingEventArgs.cs
- DataBinder.cs
- ParseChildrenAsPropertiesAttribute.cs
- Int32Rect.cs
- CollectionConverter.cs
- PageThemeCodeDomTreeGenerator.cs
- ProbeMatchesApril2005.cs
- Facet.cs
- DefaultMemberAttribute.cs
- SMSvcHost.cs
- SqlServer2KCompatibilityAnnotation.cs
- GroupDescription.cs
- RegisteredDisposeScript.cs
- CardSpaceSelector.cs
- TableItemPattern.cs
- Empty.cs
- Action.cs
- ClientTarget.cs
- XmlSchemaImport.cs
- XmlSchemaValidationException.cs
- HiddenField.cs
- CodeConditionStatement.cs
- CodeIdentifiers.cs
- RegistryConfigurationProvider.cs
- ServerIdentity.cs
- RequestSecurityTokenSerializer.cs
- Configuration.cs
- Frame.cs
- ReceiveActivityValidator.cs
- TraceListener.cs
- WorkflowServiceHost.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ErrorWebPart.cs
- SafeBitVector32.cs
- NativeMethods.cs
- GridViewRow.cs
- BatchParser.cs
- CodeGen.cs
- DataColumnChangeEvent.cs
- linebase.cs
- Button.cs
- EditingScopeUndoUnit.cs
- M3DUtil.cs
- OleStrCAMarshaler.cs
- SetterBase.cs
- ClrProviderManifest.cs
- UnescapedXmlDiagnosticData.cs
- DispatcherBuilder.cs
- RadioButtonStandardAdapter.cs
- TextBoxBase.cs
- TreeNodeBindingDepthConverter.cs
- CompositeCollection.cs
- EntityDataSourceContextCreatedEventArgs.cs
- BinHexDecoder.cs
- WsatEtwTraceListener.cs
- DataControlFieldHeaderCell.cs
- PartManifestEntry.cs
- DesignerActionGlyph.cs