---
name: "EMF_EMRSELECTOBJECT"
section: "3"
platform: "linux"
package: "libemf-doc"
version: "1.0.13-8"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/EMF_EMRSELECTOBJECT"
---

# EMF\_EMRSELECTOBJECT(3)

EMF Select Object.

## NAME

EMF::EMRSELECTOBJECT - EMF Select Object.

## SYNOPSIS

`#include <libemf.h>`

Inherits **EMF::METARECORD**, and EMRDELETEOBJECT.

### Public Member Functions

**EMRSELECTOBJECT** (HGDIOBJ object)\
 **EMRSELECTOBJECT** (**DATASTREAM** &ds)\
 bool **serialize** (**DATASTREAM** ds)\
 int **size** (void) const\
 void **execute** (**METAFILEDEVICECONTEXT** \*source, HDC dc) const\

Public Member Functions inherited from **EMF::METARECORD** virtual **~METARECORD** ()\

## Detailed Description

EMF Select Object.

Activate (make current) the given object, such as a pen, brush or font.

## Constructor & Destructor Documentation

### EMF::EMRSELECTOBJECT::EMRSELECTOBJECT (HGDIOBJ object)` [inline]`

**Parameters**

*object* the object to make active.

### EMF::EMRSELECTOBJECT::EMRSELECTOBJECT (DATASTREAM & ds)` [inline]`

Construct a SelectObject record from the input stream.

**Parameters**

*ds* Metafile datastream.

## Member Function Documentation

### void EMF::EMRSELECTOBJECT::execute (METAFILEDEVICECONTEXT \* source, HDC dc) const` [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**.

References **EMF::METAFILEDEVICECONTEXT::emf\_handles**.

### bool EMF::EMRSELECTOBJECT::serialize (DATASTREAM ds)` [inline]`, ` [virtual]`

**Parameters**

*ds* Metafile datastream.

Implements **EMF::METARECORD**.

### int EMF::EMRSELECTOBJECT::size (void) const` [inline]`, ` [virtual]`

Internally computed size of this record.

Implements **EMF::METARECORD**.

## Author

Generated automatically by Doxygen for libemf from the source code.
