IDE Constants

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at IDE Constants.

The VSConstants class provides constants that are specific to the integrated development environment (IDE) and that were previously defined only in header files.

ValueDescription
LOGVIEWID_CodeGUID_VSStandardCommandSet97 cmdidOpenWith handlers should pass this value to the OpenStandardEditor method to get the Open With dialog box, in this case on possible Code views.
LOGVIEWID_DebuggingGUID_VSStandardCommandSet97 cmdidOpenWith handlers pass this value to the OpenStandardEditor method to get the Open With dialog box, in this case populated with possible LOGVIEWID_Debugging debugging views which map to the same view as LOGVIEWID_Code.
LOGVIEWID_DesignerGUID_VSStandardCommandSet97 cmdidOpenWith handlers pass this value to the OpenStandardEditor method to get the Open With dialog box, in this case to View Form designer views.
LOGVIEWID_PrimaryGUID_VSStandardCommandSet97 cmdidOpenWith handlers pass this value to the OpenStandardEditor method to get the Open With dialog box, in this case the default/primary view of the editor factory.
LOGVIEWID_TextViewGUID_VSStandardCommandSet97 cmdidOpenWith handlers pass this value to the OpenStandardEditor method to get the Open With dialog box, in this for a document or data text editor view.
LOGVIEWID_UserChooseViewGUID_VSStandardCommandSet97 cmdidOpenWith handlers pass this value to the OpenStandardEditor method which prompts the user to choose which user-defined view to use.
ValueDescription
CEF_CLONEFILEAn obsolete flag combined bitwise as the first parameter of the CreateEditorInstance method.
CEF_OPENASNEWCombined bitwise as the first parameter of the CreateEditorInstance, method, this indicates the editor factory should perform necessary fixes.
CEF_OPENFILECombined bitwise as the first parameter of the CreateEditorInstance method, this flag is mutually exclusive of CEF_CLONEFILE.
CEF_SILENTCombined bitwise as the first parameter of the CreateEditorInstance method, this indicates the editor factory should create the editor without displaying a user interface (UI).
ValueDescription
VS_E_BUSYA constant returned by interfaces to asynchronous behavior when the object in question in already busy
VS_E_INCOMPATIBLEDOCDATAAn error HRESULT that is specific to Visual Studio for "Incompatible document data".
VS_E_PACKAGENOTLOADEDAn error HRESULT that is specific to Visual Studio and that indicates "Package not loaded."
VS_E_PROJECTALREADYEXISTSAn error HRESULT that is specific to Visual Studio and that indicates that the "Project already exists."
VS_E_PROJECTMIGRATIONFAILEDAn error HRESULT that is specific to Visual Studio and that indicates "Project configuration failed."
VS_E_PROJECTNOTLOADEDAn error HRESULT that is specific to Visual Studio and that indicates "Project not loaded."
VS_E_SOLUTIONALREADYOPENAn error HRESULT that is specific to Visual Studio and that indicates "Solution already open."
VS_E_SOLUTIONNOTOPENAn error HRESULT that is specific to Visual Studio and that indicates "Solution not open."
VS_E_SPECIFYING_OUTPUT_UNSUPPORTEDReturned by build interfaces that have parameters for specifying an array from the IVsOutput interface, but the implementation can only apply the method to all outputs.
VS_E_UNSUPPORTEDFORMATThe CreateEditorInstance method returns this value if the document has a format that cannot be opened in the editor.
VS_E_WIZARDBACKBUTTONPRESSAn HRESULT value that indicates that the user hit the back button in a Visual Studio wizard.
ValueDescription
VS_S_PROJECTFORWARDEDAn error HRESULT that is specific to Visual Studio and that indicates "Project forwarded."
VS_S_TBXMARKERA constant that is specific to Visual Studio for a "Toolbox marker."
VSM_ENTERMODALA constant that is specific to Visual Studio for broadcasting a notification message via the OnBroadcastMessage method which indicates the beginning of modality.
VSM_EXITMODALA constant that is specific to Visual Studio for broadcasting a notification message via the OnBroadcastMessage method that indicates the end of modality.
VSM_TOOLBARMETRICSCHANGEA constant that is specific to Visual Studio for broadcasting a notification message via the OnBroadcastMessage method indicating that the command bar metrics have changed.
VSCOOKIE_NILA constant that is specific to Visual Studio that indicates that a cookie has not been set.
VSITEMID_NILA Visual Studio item identifier that represents the absence of a project item. This value is used when there is no current selection.
VSITEMID_ROOTA Visual Studio item identifier that represents the root of a project hierarchy and is used to identify the entire hierarchy, as opposed to a single item.
VSITEMID_SELECTIONA Visual Studio item identifier that represents the currently selected item or items, which can include the root of the hierarchy.

Describes what component of the IDE has just been selected, in an OnElementValueChanged call, for example.

ConstantValue
DocumentFrame0x2
PropertyBrowserSID0x4
StartupProject0x3
UndoManager0x0
UserContext0x5
WindowFrame0x1

Constants used to indicate a new selection state.

ConstantValue
SEID_DocumentFrame2
SEID_LastWindowFrame7
SEID_PropertyBrowserSID4
SEID_ResultList6
SEID_StartupProject3
SEID_UndoManager0
SEID_UserContext5
SEID_WindowFrame1
ConstantValue
CPDN_SELCHANGEDWM_USER + 1280
CPDN_SELDBLCLICKWM_USER + 1281
CPPM_CLEARSELECTIONWM_USER + 1290
CPPM_GETSELECTIONWM_USER + 1287
CPPM_INITIALIZELISTWM_USER + 1285
CPPM_INITIALIZETABWM_USER + 1288
CPPM_QUERYCANSELECTWM_USER + 1286
CPPM_SETMULTISELECTWM_USER + 1289

IDE-Defined Commands for Extending Project Systems

Show: