CDC::AddMetaFileComment

BOOL AddMetaFileComment( UINT nDataSize, const BYTE* pCommentData );

Return Value

Nonzero if the function is successful; otherwise 0.

Parameters

nDataSize

Specifies the length of the comment buffer, in bytes.

pCommentData

Points to the buffer that contains the comment.

Remarks

Copies the comment from a buffer into a specified enhanced-format metafile. A comment may include any private information—for example, the source of the picture and the date it was created. A comment should begin with an application signature, followed by the data. Comments should not contain position-specific data. Position-specific data specifies the location of a record, and it should not be included because one metafile may be embedded within another metafile. This function can only be used with enhanced metafiles.

CDC OverviewClass MembersHierarchy Chart

See Also   CMetaFileDC::CreateEnhanced, ::GdiComment