2.3.8.3 EMR_DELETEOBJECT Record

The EMR_DELETEOBJECT record deletes a graphics object, which is specified by its index in the EMF object table (section 3.1.1.1).


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Type

Size

ihObject

Type (4 bytes): An unsigned integer that identifies this record type as EMR_DELETEOBJECT. This value is 0x00000028.

Size (4 bytes): An unsigned integer that specifies the size of this record in bytes.

ihObject (4 bytes): An unsigned integer that specifies the index of a graphics object in the EMF object table.

This value MUST NOT be 0, which is a reserved index that refers to the EMF metafile itself; and it MUST NOT be the index of a stock object, which cannot be deleted. Stock object indexes are specified in the StockObject (section 2.1.31) enumeration.

The object specified by this record MUST be deleted from the EMF object table. If the deleted object is currently selected into the playback device context, the default object MUST be restored.

See section 2.3.8 for more object manipulation record types.