uLib
User mode C/C++ extended API library for Win32 programmers.
|
Additional region numbers...
Region numbers for GetRandomRgn(), undocumented except SYSRGN.
On NT, these regions are in screen coordinates, and you need OffsetRgn.
Note:: GDI also has official GetClipRgn() and GetMetaRgn() (instead of 1,2).
SetMetaRegion() uses an implicit parameter, the current clipping region,
to replace the current meta region, and then clears the clipping region.
If SetMetaRegion is called again, the meta region can only get smaller.
The only way to reset the meta region is to use SaveDC on the fresh DC,
which will save it, and then RestoreDC to get it back to it's null state.
Less known features like the meta region always exist for a practical purpose.
The primary purpose of the meta region is to set a clip region for meta files
when they are displayed to a drawing surface, while allowing the clip region to
remain intact. This region can also be thought of as a second clip region.
Macros | |
#define | RR_CLIPRGN 1 |
#define | RR_METARGN 2 |
#define | RR_APIRGN 3 |
#define | RR_SYSRGN SYSRGN |
#define RR_CLIPRGN 1 |
See GetClipRgn()
Definition at line 2242 of file UtilFunc.h.
#define RR_METARGN 2 |
See GetMetaRgn()
Definition at line 2243 of file UtilFunc.h.
#define RR_APIRGN 3 |
Intersect of Clip and Meta regions.
Definition at line 2244 of file UtilFunc.h.
#define RR_SYSRGN SYSRGN |
Official, System region.
Definition at line 2245 of file UtilFunc.h.