Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
GpiSetLineJoin (1.2)
◄Function Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_GPIPRIMITIVES
BOOL GpiSetLineJoin(hps, flLineJoin)
HPS hps; /* presentation-space handle */
LONG flLineJoin; /* line-join flags */
The GpiSetLineJoin function sets the current line-join attribute to the
specified value. The line-join attribute specifies how the intersection of
lines (at the end points) are drawn by the GpiStrokePath function or by the
GpiModifyPath and GpiFillPath function pair.
If the attribute mode is AM_PRESERVE, the function saves the previous
line-join attribute on the attribute stack when it sets the new line join.
The previous line-join attribute can be retrieved by using the GpiPop
function.
Parameter Description
────────────────────────────────────────────────────────────────────────────
hps Identifies the presentation space.
flLineJoin Specifies line-join flags. It can be one of the following
values:
Value Meaning
────────────────────────────────────────────────────────────────
LINEJOIN_BEVEL Bevel
LINEJOIN_DEFAULT Default
LINEJOIN_MITRE Mitre
LINEJOIN_ROUND Round
Return Value
The return value is GPI_OK if the function is successful or GPI_ERROR if an
error occurred.
Errors
Use the WinGetLastError function to retrieve the error value, which may be
one of the following:
PMERR_INV_HPS
PMERR_INV_LINE_JOIN_ATTR
PMERR_PS_BUSY
See Also
GpiFillPath, GpiModifyPath, GpiPop, GpiQueryAttrs, GpiQueryLineJoin,
GpiSetAttrMode, GpiSetAttrs, GpiStrokePath, WinGetLastError
♦