DOCMISC

The DOCMISC enumeration provides miscellaneous property information about a document object. A combination of values from DOCMISC is returned in at the location specified by the pdwStatus parameter in IOleDocument::GetDocMiscStatus.

typedef enum
{ 
    DOCMISC_CANCREATEMULTIPLEVIEWS    =  1, 
    DOCMISC_SUPPORTCOMPLEXRECTANGLES  =  2, 
    DOCMISC_CANTOPENEDIT,             =  4, 
    DOCMISC_NOFILESUPPORT             =  8  
} DOCMISC;
 

Elements

DOCMISC_CANCREATEMULTIPLEVIEWS
Object supports multiple views.
DOCMISC_SUPPORTCOMPLEXRECTANGLES
Object supports complex rectangles and, therefore implements IOleDocumentView::SetRectComplex.
DOCMISC_CANTOPENEDIT
Object supports activation in a separate window and, therefore implements IOleDocumentView::Open.
DOCMISC_NOFILESUPPORT
Object does not support file read/write.

Remarks

Objects that have a limited user interface for activation purposes should set DOCMISC_CANTOPENEDIT. Those that support IPersistStorage only as a persistence mechanism should specify DOCMISC_NOFILESUPPORT. Otherwise, an object must also implement IPersistFile.

If an object requires none of these flags, it must write a zero to the *pdwStatus parameter of IOleDocument::GetDocMiscStatus.

See Also

IOleDocument::GetDocMiscStatus, IOleDocumentView::Open, IOleDocumentView::SetRectComplex, IPersistFile, IPersistStorage