SetMiterLimit

  BOOL SetMiterLimit(hdc, eNewLimit, peOldLimit)    
  HDC hdc;    
  FLOAT eNewLimit;    
  PFLOAT peOldLimit;    

The SetMiterLimit function sets the limit for the length of miter joins for the specified DC. The miter length is defined to be the distance from the intersection of the line wall on the inside of the join to the intersection of the line walls on the outside of the join. The miter limit is the maximum allowed ratio of the miter length to the line width.

Parameters

hdc

Identifies the device context.

eNewLimit

Specifies the new miter limit for the specified DC.

peOldLimit

Points to a floating point value that will contain the previous miter limit. If NULL, the previous miter limit is not returned.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.

Comments

The default miter limit is 10.0.

See Also

ExtCreatePen