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
- CodeParameterDeclarationExpression.cs
- SR.cs
- Listbox.cs
- DATA_BLOB.cs
- TransactionProtocol.cs
- PersonalizableTypeEntry.cs
- RoutedCommand.cs
- ISAPIWorkerRequest.cs
- Imaging.cs
- ConfigurationPropertyCollection.cs
- DrawingGroupDrawingContext.cs
- DrawToolTipEventArgs.cs
- QuaternionAnimation.cs
- TargetParameterCountException.cs
- UnsafeCollabNativeMethods.cs
- PrintPreviewDialog.cs
- MetadataCache.cs
- ModuleBuilder.cs
- OutputCacheProfileCollection.cs
- XmlSchema.cs
- SendOperation.cs
- NumericUpDownAcceleration.cs
- HttpBrowserCapabilitiesBase.cs
- WindowManager.cs
- __TransparentProxy.cs
- PermissionSetEnumerator.cs
- DesignerMetadata.cs
- OutputCacheSettings.cs
- DateTimeAutomationPeer.cs
- Codec.cs
- ProxyAttribute.cs
- tibetanshape.cs
- DataGridItemEventArgs.cs
- SR.cs
- TemplateField.cs
- ComEventsSink.cs
- DateTimeOffsetConverter.cs
- RemotingHelper.cs
- LongMinMaxAggregationOperator.cs
- ResourceSet.cs
- XmlSchemaSequence.cs
- ControlAdapter.cs
- MappingException.cs
- IconBitmapDecoder.cs
- DatagramAdapter.cs
- DetailsViewModeEventArgs.cs
- BooleanFunctions.cs
- MarshalByRefObject.cs
- DefaultExpression.cs
- MemberInitExpression.cs
- RoutingEndpointTrait.cs
- ConnectionManagementSection.cs
- CharEntityEncoderFallback.cs
- StringReader.cs
- BaseTreeIterator.cs
- DataServiceOperationContext.cs
- Vector3DCollection.cs
- LinkDescriptor.cs
- XmlILStorageConverter.cs
- DBConcurrencyException.cs
- DataFormats.cs
- MD5Cng.cs
- HexParser.cs
- GenericWebPart.cs
- PointConverter.cs
- MetadataItem_Static.cs
- XmlDocumentType.cs
- BoundPropertyEntry.cs
- Crypto.cs
- EntitySetBase.cs
- OleDbInfoMessageEvent.cs
- ProfileGroupSettings.cs
- ToolStripDropDownMenu.cs
- SQLDateTime.cs
- DataObject.cs
- LayoutEngine.cs
- X509ChainPolicy.cs
- LoginAutoFormat.cs
- AsyncResult.cs
- Scripts.cs
- WebServiceParameterData.cs
- StrokeCollection2.cs
- WindowsTooltip.cs
- MobileTemplatedControlDesigner.cs
- XmlAtomicValue.cs
- FontStretch.cs
- OracleConnectionStringBuilder.cs
- SimpleWorkerRequest.cs
- NetworkStream.cs
- ConstructorArgumentAttribute.cs
- VersionValidator.cs
- VisualStyleRenderer.cs
- AutomationPattern.cs
- IISUnsafeMethods.cs
- MimeFormatExtensions.cs
- RectConverter.cs
- ColorTransformHelper.cs
- followingquery.cs
- ProfileSettingsCollection.cs
- RequestBringIntoViewEventArgs.cs