Delen via


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.

Logical and Physical Views

Value

Description

LOGVIEWID_Code

GUID_VSStandardCommandSet97cmdidOpenWith handlers should pass this value to the OpenStandardEditor method to get the Open With dialog box, in this case on possible Code views.

LOGVIEWID_Debugging

GUID_VSStandardCommandSet97cmdidOpenWith 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_Designer

GUID_VSStandardCommandSet97cmdidOpenWith handlers pass this value to the OpenStandardEditor method to get the Open With dialog box, in this case to View Form designer views.

LOGVIEWID_Primary

GUID_VSStandardCommandSet97cmdidOpenWith 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_TextView

GUID_VSStandardCommandSet97cmdidOpenWith 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_UserChooseView

GUID_VSStandardCommandSet97cmdidOpenWith handlers pass this value to the OpenStandardEditor method which prompts the user to choose which user-defined view to use.

Editor Factory Flags

Value

Description

CEF_CLONEFILE

An obsolete flag combined bitwise as the first parameter of the CreateEditorInstance method.

CEF_OPENASNEW

Combined bitwise as the first parameter of the CreateEditorInstance, method, this indicates the editor factory should perform necessary fixes.

CEF_OPENFILE

Combined bitwise as the first parameter of the CreateEditorInstance method, this flag is mutually exclusive of CEF_CLONEFILE.

CEF_SILENT

Combined bitwise as the first parameter of the CreateEditorInstance method, this indicates the editor factory should create the editor without displaying a user interface (UI).

Visual Studio Errors

Value

Description

VS_E_BUSY

A constant returned by interfaces to asynchronous behavior when the object in question in already busy

VS_E_INCOMPATIBLEDOCDATA

An error HRESULT that is specific to Visual Studio for "Incompatible document data".

VS_E_PACKAGENOTLOADED

An error HRESULT that is specific to Visual Studio and that indicates "Package not loaded."

VS_E_PROJECTALREADYEXISTS

An error HRESULT that is specific to Visual Studio and that indicates that the "Project already exists."

VS_E_PROJECTMIGRATIONFAILED

An error HRESULT that is specific to Visual Studio and that indicates "Project configuration failed."

VS_E_PROJECTNOTLOADED

An error HRESULT that is specific to Visual Studio and that indicates "Project not loaded."

VS_E_SOLUTIONALREADYOPEN

An error HRESULT that is specific to Visual Studio and that indicates "Solution already open."

VS_E_SOLUTIONNOTOPEN

An error HRESULT that is specific to Visual Studio and that indicates "Solution not open."

VS_E_SPECIFYING_OUTPUT_UNSUPPORTED

Returned 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_UNSUPPORTEDFORMAT

The CreateEditorInstance method returns this value if the document has a format that cannot be opened in the editor.

VS_E_WIZARDBACKBUTTONPRESS

An HRESULT value that indicates that the user hit the back button in a Visual Studio wizard.

Visual Studio Constants

Value

Description

VS_S_PROJECTFORWARDED

An error HRESULT that is specific to Visual Studio and that indicates "Project forwarded."

VS_S_TBXMARKER

A constant that is specific to Visual Studio for a "Toolbox marker."

VSM_ENTERMODAL

A constant that is specific to Visual Studio for broadcasting a notification message via the OnBroadcastMessage method which indicates the beginning of modality.

VSM_EXITMODAL

A constant that is specific to Visual Studio for broadcasting a notification message via the OnBroadcastMessage method that indicates the end of modality.

VSM_TOOLBARMETRICSCHANGE

A 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_NIL

A constant that is specific to Visual Studio that indicates that a cookie has not been set.

VSITEMID_NIL

A Visual Studio item identifier that represents the absence of a project item. This value is used when there is no current selection.

VSITEMID_ROOT

A 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_SELECTION

A Visual Studio item identifier that represents the currently selected item or items, which can include the root of the hierarchy.

IVsSelectionEvents

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

Constant

Value

DocumentFrame

0x2

PropertyBrowserSID

0x4

StartupProject

0x3

UndoManager

0x0

UserContext

0x5

WindowFrame

0x1

VSSELELEMID

Constants used to indicate a new selection state.

Constant

Value

SEID_DocumentFrame

2

SEID_LastWindowFrame

7

SEID_PropertyBrowserSID

4

SEID_ResultList

6

SEID_StartupProject

3

SEID_UndoManager

0

SEID_UserContext

5

SEID_WindowFrame

1

Component Selector Dialog Constants

Constant

Value

CPDN_SELCHANGED

WM_USER + 1280

CPDN_SELDBLCLICK

WM_USER + 1281

CPPM_CLEARSELECTION

WM_USER + 1290

CPPM_GETSELECTION

WM_USER + 1287

CPPM_INITIALIZELIST

WM_USER + 1285

CPPM_INITIALIZETAB

WM_USER + 1288

CPPM_QUERYCANSELECT

WM_USER + 1286

CPPM_SETMULTISELECT

WM_USER + 1289

See Also

Concepts

IDE-Defined Commands for Extending Project Systems