Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / UIAutomation / Win32Providers / MS / Internal / AutomationProxies / WindowsToolbarAsMenu.cs / 1305600 / 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
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Vector3D.cs
- MouseCaptureWithinProperty.cs
- ResourcePart.cs
- Stroke.cs
- baseaxisquery.cs
- FormViewDesigner.cs
- EntityContainer.cs
- DispatcherOperation.cs
- QueryContinueDragEventArgs.cs
- FormatConvertedBitmap.cs
- HtmlGenericControl.cs
- ProcessHost.cs
- BasicKeyConstraint.cs
- IpcClientManager.cs
- RelationshipFixer.cs
- SystemColors.cs
- UnmanagedBitmapWrapper.cs
- Expression.cs
- Int64Converter.cs
- AuthenticodeSignatureInformation.cs
- MetadataImporter.cs
- Relationship.cs
- QueueProcessor.cs
- XmlCodeExporter.cs
- SimpleLine.cs
- PopupControlService.cs
- SerialPinChanges.cs
- ToolStripManager.cs
- AssemblyBuilder.cs
- XPathAncestorQuery.cs
- PartialTrustVisibleAssembly.cs
- FormViewRow.cs
- XmlLanguage.cs
- GenericUriParser.cs
- WrappedIUnknown.cs
- Mappings.cs
- MetadataArtifactLoader.cs
- XmlSchemaDocumentation.cs
- CompressEmulationStream.cs
- GeneralTransformGroup.cs
- TransformValueSerializer.cs
- EventItfInfo.cs
- CommandCollectionEditor.cs
- TabletDeviceInfo.cs
- ApplicationException.cs
- SiteMapNodeCollection.cs
- OleDbInfoMessageEvent.cs
- OdbcEnvironment.cs
- String.cs
- BindingBase.cs
- AttachedAnnotation.cs
- ErrorWebPart.cs
- DataGridColumnCollectionEditor.cs
- NetNamedPipeSecurityMode.cs
- DateTimeOffsetConverter.cs
- SByte.cs
- SqlDataSourceCommandEventArgs.cs
- XmlMtomWriter.cs
- ConfigurationSectionHelper.cs
- LineBreakRecord.cs
- ControlBuilderAttribute.cs
- Process.cs
- TranslateTransform3D.cs
- AspCompat.cs
- DurableInstancingOptions.cs
- TableCellCollection.cs
- EntityDataSourceReferenceGroup.cs
- WebResourceAttribute.cs
- StylusSystemGestureEventArgs.cs
- ListDictionary.cs
- SchemaSetCompiler.cs
- DbFunctionCommandTree.cs
- StatusBarPanelClickEvent.cs
- RepeatEnumerable.cs
- TreeNodeCollection.cs
- HttpRuntime.cs
- TypeTypeConverter.cs
- SecurityTokenContainer.cs
- EntityClientCacheEntry.cs
- Baml6ConstructorInfo.cs
- DataColumnMappingCollection.cs
- ActivationArguments.cs
- IisNotInstalledException.cs
- _HeaderInfoTable.cs
- _SSPISessionCache.cs
- RegisteredHiddenField.cs
- CollectionConverter.cs
- EntityAdapter.cs
- QuaternionAnimation.cs
- GradientSpreadMethodValidation.cs
- AnnotationDocumentPaginator.cs
- login.cs
- PolicyException.cs
- DataList.cs
- ScrollBar.cs
- CustomAttribute.cs
- InheritedPropertyDescriptor.cs
- TrackingParameters.cs
- XmlILCommand.cs