Partilhar via


__VSCREATEDOCWIN Enum

Definition

Controls how a new document window is created.

public enum class __VSCREATEDOCWIN
public enum class __VSCREATEDOCWIN
enum __VSCREATEDOCWIN
public enum __VSCREATEDOCWIN
type __VSCREATEDOCWIN = 
Public Enum __VSCREATEDOCWIN
Inheritance
__VSCREATEDOCWIN

Fields

Name Value Description
CDW_RDTFLAGS_MASK 1048575

Mask for running document table flags.

CDW_fDockable 1048576

Obsolete. Do not use.

CDW_fAltDocData 2097152

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

CDW_fCreateNewWindow 4194304

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.

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:

Applies to