Important: The information in this document is obsolete and should not be used for new development.
CreatePartInCyberDocument
Creates a new part in the Cyberdog session document.
ODPart CreatePartInCyberDocument (in ODType partType, in ODEditor optionalEditor);
partType
- The part kind to use for the new part.
optionalEditor
- The part editor to use for the new part.
- return value
- The newly created part.
DISCUSSION
This method is called by theCreateCyberPart
method to create a new display part in the Cyberdog session document. This method calls theODDraft::CreatePart
method.You cannot use the standard OpenDoc code for closing a window when closing a part created using
CreatePartInCyberDocument
. Instead, you should callCloseCyberDraftWindow
.Do not subclass this class.
SEE ALSO
TheCloseCyberDraftWindow
method (page 353).
TheCreateCyberPart
method (page 356).