The GetPolyFillMode function retrieves the current polygon fill mode.
int GetPolyFillMode(
HDC hdc // handle to device context
);
If the function succeeds, the return value specifies the polygon fill mode, which can be either of the following values:
Value | Meaning |
---|---|
ALTERNATE | Selects alternate mode (fills area between odd-numbered and even-numbered polygon sides on each scan line). |
WINDING | Selects winding mode (fills any region with a nonzero winding value). |
If an error occurs, the return value is zero.
Windows NT: To get extended error information, call GetLastError.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Regions Overview, Region Functions, SetPolyFillMode