GetPolyFillMode function (wingdi.h)

The GetPolyFillMode function retrieves the current polygon fill mode.

Syntax

int GetPolyFillMode(
  [in] HDC hdc
);

Parameters

[in] hdc

Handle to the device context.

Return value

If the function succeeds, the return value specifies the polygon fill mode, which can be one 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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

Region Functions

Regions Overview

SetPolyFillMode