EMREXTCREATEPEN structure (wingdi.h)

The EMREXTCREATEPEN structure contains members for the ExtCreatePen enhanced metafile record. If the record contains a BITMAPINFO structure, it is followed by the bitmap bits that form a packed device-independent bitmap (DIB).

Syntax

typedef struct tagEMREXTCREATEPEN {
  EMR         emr;
  DWORD       ihPen;
  DWORD       offBmi;
  DWORD       cbBmi;
  DWORD       offBits;
  DWORD       cbBits;
  EXTLOGPEN32 elp;
} EMREXTCREATEPEN, *PEMREXTCREATEPEN;

Members

emr

The base structure for all record types.

ihPen

Index to pen in handle table.

offBmi

Offset to BITMAPINFO structure, if any.

cbBmi

Size of BITMAPINFO structure, if any.

offBits

Offset to brush bitmap bits, if any.

cbBits

Size of brush bitmap bits, if any.

elp

Extended logical pen, including the elpStyleEntry member of the EXTLOGPEN structure.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header wingdi.h (include Windows.h)

See also

BITMAPINFO

EXTLOGPEN

ExtCreatePen

Metafile Structures

Metafiles Overview