EMRCREATEBRUSHINDIRECT structure (wingdi.h)

The EMRCREATEBRUSHINDIRECT structure contains members for the CreateBrushIndirect enhanced metafile record.

Syntax

typedef struct tagEMRCREATEBRUSHINDIRECT {
  EMR        emr;
  DWORD      ihBrush;
  LOGBRUSH32 lb;
} EMRCREATEBRUSHINDIRECT, *PEMRCREATEBRUSHINDIRECT;

Members

emr

The base structure for all record types.

ihBrush

Index of brush in handle table.

lb

A LOGBRUSH32 structure containing information about the brush. The lbStyle member must be either the BS_SOLID, BS_HOLLOW, BS_NULL, or BS_HATCHED value.

Note, that if your code is used on both 32-bit and 64-bit platforms, you must use the LOGBRUSH32 structure. This maintains compatibility between the platforms when you record the metafile on one platform and use it on the other platform. If your code remains on one platform, it is sufficient to use LOGBRUSH.

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

CreateBrushIndirect

LOGBRUSH

LOGBRUSH32

Metafile Structures

Metafiles Overview