Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / Win32Providers / MS / Internal / AutomationProxies / Main.cs / 1305600 / Main.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: // Proxy registration. // // History: // a-jeanp Revised for WCP // //--------------------------------------------------------------------------- using System; using System.Windows.Automation; using System.Windows.Automation.Provider; using MS.Win32; namespace UIAutomationClientsideProviders { ////// Class containing Client-Side Providers for various common Win32 controls /// #if (INTERNAL_COMPILE) internal static class UIAutomationClientSideProviders #else public static class UIAutomationClientSideProviders #endif { //----------------------------------------------------- // // Public Fields // //----------------------------------------------------- #region Public Fields ////// Table of client-side providers for various common Win32 controls /// static public ClientSideProviderDescription[] ClientSideProviderDescriptionTable = { // Windows proxies new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsButton.Create), "Button"), // Create a dummy proxy for ComboboxEx32, which will be hidden from the LogicalTree, combo will always be presented by WindowsComboBox new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsNonControl.Create), "ComboBoxEx32"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsComboBox.Create), "ComboBox"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsListBox.Create), "ComboLBox"), // List portion of combo new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsListBox.Create), "ListBox"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsHyperlink.Create), "SysLink"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsIPAddress.Create), "SysIPAddress32"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsSysHeader.Create), "SysHeader32"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsListView.Create), "SysListView32", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsRichEdit.Create), "RichEdit"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsRichEdit.Create), "RichEdit20A"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsRichEdit.Create), "RichEdit20W"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsRichEdit.Create), "RichEdit50W"), // The [....] control WindowForms10.RichEdit20W.app11c7a8c does not get the a match // for richedit so assume the follow patial match will get it new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsRichEdit.Create), ".RichEdit20", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsEditBox.Create), "Edit"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsSpinner.Create), "msctls_updown32"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsUpDown.Create), "msctls_updown32"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsStatic.Create), "Static", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsStatusBar.Create), "msctls_statusbar32"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsTab.Create), "SysTabControl32", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsToolbar.Create), "ToolbarWindow32", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.Create), "#32768"), // this proxy has a dependancy on Microsoft.mshtml.dll which is an interop dll created by tlbimp.exe. // A wrapper needs to be created to get rid of the use of this dll. this must happen before this proxy // can be reenabled. // new ClientSideProviderDescription( new ClientSideProviderFactoryCallback( MS.Internal.AutomationProxiesInternetExplorerProxy.Create ), "Internet Explorer_Server" ), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsSlider.Create), "msctls_trackbar32"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsProgressBar.Create), "msctls_progress32"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsTreeView.Create), "SysTreeView32", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsTooltip.Create), "tooltips_class32", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsTooltip.Create), "#32774"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsRebar.Create), "ReBarWindow32"), // Add entries for other window classes here... new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsAltTab.Create), "#32771"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsContainer.Create), "#32770"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsContainer.Create), "AfxControlBar", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsStartMenu.Create), "BaseBar"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsNonControl.Create), "WorkerW"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsNonControl.Create), "SHELLDLL_DefView"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsFormsHelper.Create), "WindowsForms", null, ClientSideProviderMatchIndicator.AllowSubstringMatch), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.NonClientArea.Create), "#nonclient"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.NonClientArea.CreateMenuBarItem), "#nonclientmenubar"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.NonClientArea.CreateSystemMenu), "#nonclientsysmenu"), // this one handles determing the focused item when in menu mode... new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.WindowsMenu.CreateFocusedMenuItem), "#user32focusedmenu"), new ClientSideProviderDescription(new ClientSideProviderFactoryCallback(MS.Internal.AutomationProxies.MsaaNativeProvider.Create), null) }; #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
- UpdateDelegates.Generated.cs
- InvokePattern.cs
- DecimalSumAggregationOperator.cs
- ValidationHelper.cs
- RpcResponse.cs
- ShaderEffect.cs
- AutomationElement.cs
- DbProviderConfigurationHandler.cs
- StreamGeometry.cs
- DisplayNameAttribute.cs
- CacheSection.cs
- xml.cs
- CompositeScriptReferenceEventArgs.cs
- StateBag.cs
- FormViewDeleteEventArgs.cs
- BaseCollection.cs
- Parser.cs
- SecurityPermission.cs
- EventDescriptor.cs
- WizardPanel.cs
- PowerModeChangedEventArgs.cs
- DataGridViewRowsAddedEventArgs.cs
- LogicalMethodInfo.cs
- TypeConverterHelper.cs
- EncoderFallback.cs
- UntypedNullExpression.cs
- GeneralTransform3DCollection.cs
- InvalidAsynchronousStateException.cs
- Slider.cs
- ObjectListComponentEditor.cs
- TemplatedWizardStep.cs
- Restrictions.cs
- PersonalizationStateInfo.cs
- SoapObjectReader.cs
- LeftCellWrapper.cs
- TextTreeInsertUndoUnit.cs
- DataControlFieldHeaderCell.cs
- PaintEvent.cs
- _TimerThread.cs
- ServiceInstanceProvider.cs
- HtmlButton.cs
- HttpCapabilitiesBase.cs
- DirectoryRootQuery.cs
- userdatakeys.cs
- Button.cs
- WaitHandleCannotBeOpenedException.cs
- AbandonedMutexException.cs
- SqlInternalConnectionSmi.cs
- Vector3D.cs
- DbDataRecord.cs
- AppDomainCompilerProxy.cs
- DiffuseMaterial.cs
- UIPropertyMetadata.cs
- LayoutTableCell.cs
- AsymmetricKeyExchangeDeformatter.cs
- TimeSpanConverter.cs
- CheckPair.cs
- ExpressionBinding.cs
- HuffmanTree.cs
- DbProviderManifest.cs
- RemotingSurrogateSelector.cs
- WebBrowserHelper.cs
- ParallelSeparator.xaml.cs
- MaskInputRejectedEventArgs.cs
- ProfileManager.cs
- DoubleKeyFrameCollection.cs
- TypeLoadException.cs
- Avt.cs
- HTTPNotFoundHandler.cs
- EncodingDataItem.cs
- ComponentCommands.cs
- WebPartUserCapability.cs
- DataGridViewCellEventArgs.cs
- XmlObjectSerializerReadContextComplex.cs
- CollectionViewProxy.cs
- DateTimeOffsetStorage.cs
- RegexStringValidatorAttribute.cs
- DataServiceConfiguration.cs
- CacheEntry.cs
- Send.cs
- XsdBuilder.cs
- DesignerOptionService.cs
- AncillaryOps.cs
- TrackingProfileDeserializationException.cs
- DocumentOrderComparer.cs
- BinaryUtilClasses.cs
- CookielessHelper.cs
- TypeUsage.cs
- Axis.cs
- QueryStringHandler.cs
- Polyline.cs
- EncryptedPackageFilter.cs
- Application.cs
- PhoneCall.cs
- ForEachAction.cs
- RemotingServices.cs
- RefreshPropertiesAttribute.cs
- EventLogTraceListener.cs
- RedistVersionInfo.cs
- DataExpression.cs