次の方法で共有


GetRgnBox (Compact 2013)

3/28/2014

This function retrieves the bounding rectangle of the specified region.

Syntax

int GetRgnBox(
  HRGN hrgn, 
  LPRECT lprc
); 

Parameters

  • hrgn
    [in] Handle to the region.
  • lprc
    [out] Long pointer to a RECT structure that receives the bounding rectangle.

Return Value

The return value specifies the region's complexity.

NULLREGION indicates that the region is empty.

SIMPLEREGION indicates that the region is a single rectangle.

COMPLEXREGION indicates that the region is more than a single rectangle.

Zero indicates that the hrgn parameter does not identify a valid region

Requirements

Header

windows.h

Library

coredll.lib

See Also

Reference

GDI Functions
RECT