DOCMISC enumeration (docobj.h)
Provides miscellaneous property information about a document object.
Syntax
typedef enum __MIDL_IOleDocument_0001 {
DOCMISC_CANCREATEMULTIPLEVIEWS = 1,
DOCMISC_SUPPORTCOMPLEXRECTANGLES = 2,
DOCMISC_CANTOPENEDIT = 4,
DOCMISC_NOFILESUPPORT = 8
} DOCMISC;
Constants
DOCMISC_CANCREATEMULTIPLEVIEWS Value: 1 Object supports multiple views. |
DOCMISC_SUPPORTCOMPLEXRECTANGLES Value: 2 Object supports complex rectangles and therefore implements IOleDocumentView::SetRectComplex. |
DOCMISC_CANTOPENEDIT Value: 4 Object supports activation in a separate window and therefore implements IOleDocumentView::Open. |
DOCMISC_NOFILESUPPORT Value: 8 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.
A combination of values from DOCMISC is returned at the location specified by the pdwStatus parameter in IOleDocument::GetDocMiscStatus.
If an object requires none of these flags, it must write a zero to the pdwStatus parameter.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | docobj.h |
See also
IOleDocument::GetDocMiscStatus