Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / AccessibleTech / longhorn / Automation / Win32Providers / MS / Internal / AutomationProxies / WindowsToolbarAsMenu.cs / 1 / WindowsToolbarAsMenu.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Some applications implement menus with toolbars. This proxy // will used the IAccessible to expose these toolbars as // menus. This proxy is derived from WindowsToolbar since // the underlying control really is a toolbar and WindowsToolbar // knows how to communicate with then underlying toolbar control // already. // // History: // 01/31/2005 : [....] Created //--------------------------------------------------------------------------- using System; using System.Windows.Automation; using MS.Win32; namespace MS.Internal.AutomationProxies { class WindowsToolbarAsMenu : WindowsToolbar { // ----------------------------------------------------- // // Constructors // // ----------------------------------------------------- #region Constructors internal WindowsToolbarAsMenu(IntPtr hwnd, ProxyFragment parent, int item, Accessible acc) : base( hwnd, parent, item ) { _acc = acc; // Set the control type based on the IAccessible role. AccessibleRole role = acc.Role; if (role == AccessibleRole.MenuBar) { _cControlType = ControlType.MenuBar; _sAutomationId = "MenuBar"; // This string is a non-localizable string } else if (role == AccessibleRole.MenuPopup) { _cControlType = ControlType.Menu; _sAutomationId = "MenuPopup"; // This string is a non-localizable string } else { System.Diagnostics.Debug.Assert(false, "Unexpected role " + role); } } #endregion // ------------------------------------------------------ // // Private Fields // // ----------------------------------------------------- #region Private Fields Accessible _acc; #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
- CodeVariableReferenceExpression.cs
- XmlChildEnumerator.cs
- MergeFailedEvent.cs
- SuppressMessageAttribute.cs
- Transform3DGroup.cs
- DataPointer.cs
- PassportAuthenticationModule.cs
- ComplexObject.cs
- TextTreeText.cs
- ExceptionRoutedEventArgs.cs
- ModuleConfigurationInfo.cs
- Menu.cs
- InitializerFacet.cs
- oledbconnectionstring.cs
- SubstitutionList.cs
- Not.cs
- ToolboxComponentsCreatedEventArgs.cs
- FontNamesConverter.cs
- ZipIOLocalFileHeader.cs
- XmlSchemaSimpleTypeRestriction.cs
- ToolStripScrollButton.cs
- Rfc2898DeriveBytes.cs
- TextDecorationCollection.cs
- LeafCellTreeNode.cs
- ResourceAssociationSetEnd.cs
- DateTimeSerializationSection.cs
- EncoderFallback.cs
- RC2.cs
- GatewayDefinition.cs
- CodeGeneratorOptions.cs
- SqlCaseSimplifier.cs
- Section.cs
- AssociationType.cs
- SafeViewOfFileHandle.cs
- WindowsGraphicsCacheManager.cs
- ObfuscationAttribute.cs
- TextPattern.cs
- SapiRecoContext.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- ConfigurationValue.cs
- HorizontalAlignConverter.cs
- SecureStringHasher.cs
- TabControl.cs
- KernelTypeValidation.cs
- HttpVersion.cs
- XmlNamespaceDeclarationsAttribute.cs
- ProgressBarBrushConverter.cs
- CalendarDay.cs
- DynamicRenderer.cs
- BamlStream.cs
- SortableBindingList.cs
- StagingAreaInputItem.cs
- Expressions.cs
- AssemblyName.cs
- Number.cs
- VarRefManager.cs
- WebPartManagerInternals.cs
- XmlSchemaParticle.cs
- ADMembershipProvider.cs
- Globals.cs
- ContextMarshalException.cs
- StorageEndPropertyMapping.cs
- AndMessageFilterTable.cs
- TypeDelegator.cs
- XmlEntity.cs
- ContentTextAutomationPeer.cs
- ImmComposition.cs
- versioninfo.cs
- IDQuery.cs
- AspNetRouteServiceHttpHandler.cs
- EdmItemCollection.OcAssemblyCache.cs
- AttributeSetAction.cs
- Win32.cs
- BezierSegment.cs
- SchemaDeclBase.cs
- RadioButton.cs
- StateMachineWorkflowDesigner.cs
- StringResourceManager.cs
- NavigationProgressEventArgs.cs
- BorderSidesEditor.cs
- RegexParser.cs
- CodeObjectCreateExpression.cs
- SqlNodeAnnotation.cs
- PrintingPermission.cs
- SourceFileBuildProvider.cs
- SourceFileInfo.cs
- CapabilitiesSection.cs
- RoleGroup.cs
- GraphicsState.cs
- DeferredTextReference.cs
- ManualWorkflowSchedulerService.cs
- InProcStateClientManager.cs
- InternalBufferOverflowException.cs
- HashSetEqualityComparer.cs
- DataSetViewSchema.cs
- RemoteWebConfigurationHostServer.cs
- SelectionListComponentEditor.cs
- MethodBuilderInstantiation.cs
- SecureEnvironment.cs
- PseudoWebRequest.cs