short Escape(hDC, SETLINECAP, sizeof(int),lpNewCap,lpOldCap)
This escape sets the line end cap.
A line end cap is that portion of a line segment that appears on either end of the segment. The cap may be square or circular. It can extend past, or remain flush with the specified segment end points.
Parameter | Type/Description |
hDC | HDC Identifies the device context. | ||
lpNewCap | LPINT Points to a short-integer value that specifies the end-cap type. The possible values and their meanings are given in the following list: | ||
Value | Meaning | ||
–1 | Line segments are drawn by using the default GDI end cap. | ||
0 | Line segments are drawn with a squared end point that does not project past the specified segment length. | ||
1 | Line segments are drawn with a rounded end point; the diameter of this semicircular arc is equal to the line width. | ||
2 | Line segments are drawn with a squared end point that projects past the specified segment length. The projection is equal to half the line width. | ||
lpOldCap | LPINT Points to a short-integer value that specifies the previous end-cap setting. |
The return value specifies the outcome of the escape. It is positive if the escape is successful. Otherwise, it is negative.
The interpretation of this escape varies with page-description languages (PDLs). Consult the PDL documentation for its exact meaning.
This escape is also known as SETENDCAP.