1 out of 1 rated this helpful - Rate this topic

ExtCreateRegion function

Applies to: desktop apps only

The ExtCreateRegion function creates a region from the specified region and transformation data.

Syntax

HRGN ExtCreateRegion(
  __in  const XFORM *lpXform,
  __in  DWORD nCount,
  __in  const RGNDATA *lpRgnData
);

Parameters

lpXform [in]

A pointer to an XFORM structure that defines the transformation to be performed on the region. If this pointer is NULL, the identity transformation is used.

nCount [in]

The number of bytes pointed to by lpRgnData.

lpRgnData [in]

A pointer to a RGNDATA structure that contains the region data in logical units.

Return value

If the function succeeds, the return value is the value of the region.

If the function fails, the return value is NULL.

Remarks

Region coordinates are represented as 27-bit signed integers.

An application can retrieve data for a region by calling the GetRegionData function.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Regions Overview
Region Functions
CreatePolygonRgn
CreatePolyPolygonRgn
CreateRectRgn
CreateRectRgnIndirect
CreateRoundRectRgn
GetRegionData
RGNDATA
XFORM

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ