Share via


__VSCREATEDOCWIN Enumeration

Controls how a new document window is created.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Public Enumeration __VSCREATEDOCWIN
'Usage
Dim instance As __VSCREATEDOCWIN
public enum __VSCREATEDOCWIN
public enum class __VSCREATEDOCWIN
public enum __VSCREATEDOCWIN

Members

Member name Description
CDW_RDTFLAGS_MASK Mask for running document table flags.
CDW_fDockable Obsolete. Do not use.
CDW_fAltDocData Used for editing sub-pieces of a larger document in individual document windows.
CDW_fCreateNewWindow Allows an additional window to be created for Window.NewWindow support.

Remarks

When you open a document in an editor, an entry for the document data (DocData) is made in the running document table (RDT). However, you can have one physical document with multiple sub-parts that need to be edited in separate windows, like the resource editor. In this case, more than one entry would be placed in the RDT for the same DocData, which would return an error. To avoid this, specify a value of CDW_fAltDocData to make one document entry in the RDT for the entire file, but open individual document windows for each of the subparts. For this to work, the main document always has to be open. For an example of specifying alternate document data, see the Solution Extender sample.

You can combine the __VSCREATEDOCWIN flags with the RDT_DOCMASK flags in the _VSRDTFLAGS enumeration when creating a document window.

COM Signature

From vsshell.idl:

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace