Controls how a new document window is created.

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

public enum __VSCREATEDOCWIN

Member nameDescription

Used for editing sub-pieces of a larger document in individual document windows.


Allows an additional window to be created for Window.NewWindow support.


Obsolete. Do not use.


Mask for running document table flags.

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.

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

From vsshell.idl:

Return to top