WORD Output(
LPPDEVICE lpDestDev,
WORD wStyle,
WORD wCount,
LPPOINT lpPoints,
LPPPEN lpPPen,
LPPBRUSH lpPBrush,
LPDRAWMODE lpDrawMode,
LPRECT lpClipRect
);
Draws a set of line segments.
1 | Function was successful. |
0 | Unrecoverable error occurred. |
-1 | Function does not support the specified style. |
Although the line segment may create a closed figure, Output never fills the figure. GDI calls this function when an application calls functions such as the Polyline function (GDI.37).
Every graphics driver (for Windows version 2.0 and later) must support the OS_POLYLINE style.
Output draws each line segment from its starting point up to, but not including, its ending point. If more than one line segment is drawn, each new segment starts at the ending point of the previous segment.
Because Output does not use a physical brush to draw the lines, the lpPBrush parameter is usually NULL.
PDEVICE, PBITMAP, DRAWMODE, RECT, POINT