GetMiterLimit

The GetMiterLimit function returns the miter limit for the specified device context.

BOOL GetMiterLimit(
  HDC hdc,         // handle to device context
  PFLOAT peLimit   // pointer to variable receiving miter limit
);
 

Parameters

hdc
Handle to the device context.
peLimit
Pointer to a floating-point value where the current miter limit will be returned.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Windows NT: To get extended error information, call GetLastError.

Remarks

The miter limit is used when drawing geometric lines that have miter joins.

QuickInfo

  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.

See Also

Paths Overview, Path Functions, ExtCreatePen, SetMiterLimit