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

# EMF\_EMRSETWINDOWEXTEX(3)

EMF Set Window Extent (ex)

## NAME

EMF::EMRSETWINDOWEXTEX - EMF Set Window Extent (ex)

## SYNOPSIS

`#include <libemf.h>`

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

### Public Member Functions

**EMRSETWINDOWEXTEX** (INT cx, INT cy)\
 **EMRSETWINDOWEXTEX** (**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 Set Window Extent (ex)

The window extents define the scale of the logical coordinates. For example, if your XY plot is from \[-10,-10\] to \[10,10\], then the window extents are \[20,20\].

## Constructor & Destructor Documentation

### EMF::EMRSETWINDOWEXTEX::EMRSETWINDOWEXTEX (INT cx, INT cy)` [inline]`

**Parameters**

*cx* width of window in logical coordinates. \
 *cy* height of window in logical coordinates.

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

Construct a SetWindowExtEx record from the input stream.

**Parameters**

*ds* Metafile datastream.

## Member Function Documentation

### void EMF::EMRSETWINDOWEXTEX::execute (METAFILEDEVICECONTEXT \* source, HDC dc) 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::EMRSETWINDOWEXTEX::serialize (DATASTREAM ds)` [inline]`, ` [virtual]`

**Parameters**

*ds* Metafile datastream.

Implements **EMF::METARECORD**.

### int EMF::EMRSETWINDOWEXTEX::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.
