EMF: EMF::ENHMETAHEADER Class Reference

# EMF::ENHMETAHEADER Class Reference

Enhanced Metafile Header Record. More...

`#include <libemf.h>`

Inheritance diagram for EMF::ENHMETAHEADER:

List of all members.

## Public Member Functions
| description_size (0)
| ~ENHMETAHEADER ()
bool | serialize (DATASTREAM ds)
bool | unserialize (DATASTREAM ds)
int | size (void) const
void | execute (METAFILEDEVICECONTEXT *, HDC) const
## Public Attributes
| __pad0__: description_w( 0 )

## Detailed Description

Enhanced Metafile Header Record.

The ENHMETAHEADER serves two purposes in this library: it keeps track of the size of the metafile (in physical dimensions) and number of records and handles that are ultimately to be written to the disk file. It is also a real record that must be written out.

## Constructor & Destructor Documentation

EMF::ENHMETAHEADER::~ENHMETAHEADER | ( |  | ) | `[inline]`

Destructor deletes memory allocated for description.

## Member Function Documentation

void EMF::ENHMETAHEADER::execute | ( | METAFILEDEVICECONTEXT * | ,
|  | HDC |  |
| ) |  |  | const`[inline, virtual]`

Execute this record in the context of the given device context.

Parameters:

  | source | the device context from which this record is taken.
  | dc | device context for execute.

Implements EMF::METARECORD.

bool EMF::ENHMETAHEADER::serialize | ( | DATASTREAM | ds | ) | `[inline, virtual]`

Serializing the header is an example of an extended record.

Parameters:

  | ds | metafile datastream.

Implements EMF::METARECORD.

int EMF::ENHMETAHEADER::size | ( | void |  | ) | const`[inline, virtual]`

Internally computed size of this record.

Implements EMF::METARECORD.

bool EMF::ENHMETAHEADER::unserialize | ( | DATASTREAM | ds | ) | `[inline]`

Read a header record from the datastream.

## Member Data Documentation

EMF::ENHMETAHEADER::__pad0__

Parameters:

  | description | an optional description argument is a UNICODE-like string with the following format: "some text\0some more text\0\0". The W32 interface defines UNICODE characters to be two-byte (unsigned short strings). The constructor makes a copy of the argument.

The documentation for this class was generated from the following file:

- libemf.h