OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Accessing TRegion

You can access and modify TRegion objects directly through an HRGN handle or through a number of member functions and operators.

To get an HRGN from a TRegion object, use the HRGN() operator with the TRegion object as the parameter. The HRGN() operator is almost never explicitly invoked:

HRGN TMyBitmap::GetHRgn()
{
return *this;
}

This code automatically invokes the HRGN() conversion operator to cast the TRegion object to the correct type.

See Also