Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / MenuCommands.cs / 1 / MenuCommands.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System.ComponentModel; using System.Diagnostics; using System; using System.ComponentModel.Design; using Microsoft.Win32; ////// /// public sealed class MenuCommands : StandardCommands { ////// This class contains command ID's and GUIDS that /// correspond /// to the host Command Bar menu layout. /// ////// /// This guid corresponds to the standard set of commands for the shell and office. /// This new giud is added so that the ToolStripDesigner now respond to the F2 command /// and go into InSitu Edit mode. /// private static readonly Guid VSStandardCommandSet97 = new Guid("{5efc7975-14bc-11cf-9b2b-00aa00573819}"); ////// /// This guid corresponds to the menu grouping Windows Forms will use for its menus. This is /// defined in the Windows Forms menu CTC file, but we need it here so we can define what /// context menus to use. /// private static readonly Guid wfMenuGroup = new Guid("{74D21312-2AEE-11d1-8BFB-00A0C90F26F7}"); ////// /// This guid corresponds to the Windows Forms command set. /// private static readonly Guid wfCommandSet = new Guid("{74D21313-2AEE-11d1-8BFB-00A0C90F26F7}"); ////// /// This guid is the standard vs 2k commands for key bindings /// private static readonly Guid guidVSStd2K = new Guid("{1496A755-94DE-11D0-8C3F-00C04FC2AAE2}"); // Windows Forms specific popup menus // private const int mnuidSelection = 0x0500; private const int mnuidContainer = 0x0501; private const int mnuidTraySelection = 0x0503; private const int mnuidComponentTray = 0x0506; // Windows Forms specific menu items // private const int cmdidDesignerProperties = 0x1001; // Windows Forms specific keyboard commands // private const int cmdidReverseCancel = 0x4001; private const int cmdidSetStatusText = 0x4003; private const int cmdidSetStatusRectangle = 0x4004; private const int cmdidSpace = 0x4015; private const int ECMD_CANCEL = 103; private const int ECMD_RETURN = 3; private const int ECMD_UP = 11; private const int ECMD_DOWN = 13; private const int ECMD_LEFT = 7; private const int ECMD_RIGHT = 9; private const int ECMD_RIGHT_EXT = 10; private const int ECMD_UP_EXT = 12; private const int ECMD_LEFT_EXT = 8; private const int ECMD_DOWN_EXT = 14; private const int ECMD_TAB = 4; private const int ECMD_BACKTAB = 5; private const int ECMD_INVOKESMARTTAG = 147; private const int ECMD_CTLMOVELEFT = 1224; private const int ECMD_CTLMOVEDOWN = 1225; private const int ECMD_CTLMOVERIGHT = 1226; private const int ECMD_CTLMOVEUP = 1227; private const int ECMD_CTLSIZEDOWN = 1228; private const int ECMD_CTLSIZEUP = 1229; private const int ECMD_CTLSIZELEFT = 1230; private const int ECMD_CTLSIZERIGHT = 1231; private const int cmdidEditLabel = 338; // Add Home and End Commands. private const int ECMD_HOME = 15; private const int ECMD_HOME_EXT = 16; private const int ECMD_END = 17; private const int ECMD_END_EXT = 18; ////// /// public static readonly CommandID SelectionMenu = new CommandID(wfMenuGroup, mnuidSelection); ///[To be supplied.] ////// /// public static readonly CommandID ContainerMenu = new CommandID(wfMenuGroup, mnuidContainer); ///[To be supplied.] ////// /// public static readonly CommandID TraySelectionMenu = new CommandID(wfMenuGroup, mnuidTraySelection); ///[To be supplied.] ////// /// public static readonly CommandID ComponentTrayMenu = new CommandID(wfMenuGroup, mnuidComponentTray); // Windows Forms commands ///[To be supplied.] ////// /// public static readonly CommandID DesignerProperties = new CommandID(wfCommandSet, cmdidDesignerProperties); // Windows Forms Key commands ///[To be supplied.] ////// /// public static readonly CommandID KeyCancel = new CommandID(guidVSStd2K, ECMD_CANCEL); ///[To be supplied.] ////// /// public static readonly CommandID KeyReverseCancel = new CommandID(wfCommandSet, cmdidReverseCancel); ///[To be supplied.] ////// /// public static readonly CommandID KeyInvokeSmartTag = new CommandID(guidVSStd2K, ECMD_INVOKESMARTTAG); ///[To be supplied.] ////// /// public static readonly CommandID KeyDefaultAction = new CommandID(guidVSStd2K, ECMD_RETURN); ///[To be supplied.] ////// /// public static readonly CommandID KeyMoveUp = new CommandID(guidVSStd2K, ECMD_UP); ///[To be supplied.] ////// /// public static readonly CommandID KeyMoveDown = new CommandID(guidVSStd2K, ECMD_DOWN); ///[To be supplied.] ////// /// public static readonly CommandID KeyMoveLeft = new CommandID(guidVSStd2K, ECMD_LEFT); ///[To be supplied.] ////// /// public static readonly CommandID KeyMoveRight = new CommandID(guidVSStd2K, ECMD_RIGHT); ///[To be supplied.] ////// /// public static readonly CommandID KeyNudgeUp = new CommandID(guidVSStd2K, ECMD_CTLMOVEUP); ///[To be supplied.] ////// /// public static readonly CommandID KeyNudgeDown = new CommandID(guidVSStd2K, ECMD_CTLMOVEDOWN); ///[To be supplied.] ////// /// public static readonly CommandID KeyNudgeLeft = new CommandID(guidVSStd2K, ECMD_CTLMOVELEFT); ///[To be supplied.] ////// /// public static readonly CommandID KeyNudgeRight = new CommandID(guidVSStd2K, ECMD_CTLMOVERIGHT); ///[To be supplied.] ////// /// public static readonly CommandID KeySizeWidthIncrease = new CommandID(guidVSStd2K, ECMD_RIGHT_EXT); ///[To be supplied.] ////// /// public static readonly CommandID KeySizeHeightIncrease = new CommandID(guidVSStd2K, ECMD_UP_EXT); ///[To be supplied.] ////// /// public static readonly CommandID KeySizeWidthDecrease = new CommandID(guidVSStd2K, ECMD_LEFT_EXT); ///[To be supplied.] ////// /// public static readonly CommandID KeySizeHeightDecrease = new CommandID(guidVSStd2K, ECMD_DOWN_EXT); ///[To be supplied.] ////// /// public static readonly CommandID KeyNudgeWidthIncrease = new CommandID(guidVSStd2K, ECMD_CTLSIZERIGHT); ///[To be supplied.] ////// /// public static readonly CommandID KeyNudgeHeightIncrease = new CommandID(guidVSStd2K, ECMD_CTLSIZEDOWN); ///[To be supplied.] ////// /// public static readonly CommandID KeyNudgeWidthDecrease = new CommandID(guidVSStd2K, ECMD_CTLSIZELEFT); ///[To be supplied.] ////// /// public static readonly CommandID KeyNudgeHeightDecrease = new CommandID(guidVSStd2K, ECMD_CTLSIZEUP); ///[To be supplied.] ////// /// public static readonly CommandID KeySelectNext = new CommandID(guidVSStd2K, ECMD_TAB); ///[To be supplied.] ////// /// public static readonly CommandID KeySelectPrevious = new CommandID(guidVSStd2K, ECMD_BACKTAB); ///[To be supplied.] ////// /// public static readonly CommandID KeyTabOrderSelect = new CommandID(wfCommandSet, cmdidSpace); ///[To be supplied.] ////// /// public static readonly CommandID EditLabel = new CommandID(VSStandardCommandSet97, cmdidEditLabel); ///[To be supplied.] ////// /// public static readonly CommandID KeyHome = new CommandID(guidVSStd2K, ECMD_HOME); ///[To be supplied.] ////// /// public static readonly CommandID KeyEnd = new CommandID(guidVSStd2K, ECMD_END); ///[To be supplied.] ////// /// public static readonly CommandID KeyShiftHome = new CommandID(guidVSStd2K, ECMD_HOME_EXT); ///[To be supplied.] ////// /// public static readonly CommandID KeyShiftEnd = new CommandID(guidVSStd2K, ECMD_END_EXT); ///[To be supplied.] ////// /// public static readonly CommandID SetStatusText = new CommandID(wfCommandSet, cmdidSetStatusText); ///[To be supplied.] ////// /// public static readonly CommandID SetStatusRectangle = new CommandID(wfCommandSet, cmdidSetStatusRectangle); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapInitialize.cs
- LogicalExpr.cs
- SqlMetaData.cs
- ServicePointManagerElement.cs
- UntypedNullExpression.cs
- FieldMetadata.cs
- MimeMapping.cs
- TablePatternIdentifiers.cs
- SwitchExpression.cs
- InternalSafeNativeMethods.cs
- DiagnosticsConfigurationHandler.cs
- SkinBuilder.cs
- ParseNumbers.cs
- EventLogEntryCollection.cs
- DetailsViewInsertEventArgs.cs
- XmlSchemaComplexContentExtension.cs
- UpdateTracker.cs
- SslStream.cs
- FontStretch.cs
- ScrollBarRenderer.cs
- VerificationException.cs
- ListViewDataItem.cs
- ServiceInfoCollection.cs
- DataObjectPastingEventArgs.cs
- SiteMapNodeItem.cs
- UrlAuthorizationModule.cs
- WebPartUserCapability.cs
- Gdiplus.cs
- ProcessHostServerConfig.cs
- ThemeableAttribute.cs
- WebConfigurationFileMap.cs
- DocumentGridContextMenu.cs
- NativeCompoundFileAPIs.cs
- MenuItemStyleCollection.cs
- WorkflowPageSetupDialog.cs
- CellTreeNode.cs
- KeyConverter.cs
- ExpressionBindings.cs
- EncoderParameter.cs
- AnnotationService.cs
- CatalogZoneDesigner.cs
- HandlerBase.cs
- ProfileSection.cs
- HwndPanningFeedback.cs
- PropertyInfoSet.cs
- SerialStream.cs
- WebScriptEnablingElement.cs
- DataGridViewCellValidatingEventArgs.cs
- FtpWebRequest.cs
- SafeThemeHandle.cs
- Cloud.cs
- LeafCellTreeNode.cs
- HostProtectionException.cs
- PropertyPushdownHelper.cs
- X509RecipientCertificateClientElement.cs
- OutputCacheModule.cs
- DataGridViewBindingCompleteEventArgs.cs
- ApplyImportsAction.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- PtsHelper.cs
- FreezableDefaultValueFactory.cs
- SHA1CryptoServiceProvider.cs
- BlockUIContainer.cs
- ValidateNames.cs
- DropShadowEffect.cs
- Boolean.cs
- DWriteFactory.cs
- CodeExporter.cs
- Win32NamedPipes.cs
- WindowsPrincipal.cs
- FileDialogPermission.cs
- BasicHttpMessageSecurity.cs
- CrossContextChannel.cs
- AvTraceFormat.cs
- DataPagerFieldItem.cs
- RegisterResponseInfo.cs
- ParameterBuilder.cs
- PixelShader.cs
- NullableLongAverageAggregationOperator.cs
- TextEffect.cs
- ToolStripTextBox.cs
- GridViewUpdatedEventArgs.cs
- OperationAbortedException.cs
- ConfigurationStrings.cs
- InvalidProgramException.cs
- ObjectListItemCollection.cs
- CornerRadius.cs
- NgenServicingAttributes.cs
- ToolStripProgressBar.cs
- Stroke.cs
- LogStream.cs
- XmlElement.cs
- FixedLineResult.cs
- XmlChildEnumerator.cs
- RuntimeCompatibilityAttribute.cs
- KeyboardDevice.cs
- DocumentViewerBase.cs
- SelectedDatesCollection.cs
- QuadraticBezierSegment.cs
- AutoGeneratedFieldProperties.cs