StrokePath function (wingdi.h)
The StrokePath function renders the specified path by using the current pen.
Syntax
BOOL StrokePath(
[in] HDC hdc
);
Parameters
[in] hdc
Handle to a device context that contains the completed path.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The path, if it is to be drawn by StrokePath, must have been completed through a call to EndPath. Calling this function on a path for which EndPath has not been called will cause this function to fail and return zero. Unlike other path drawing functions such as StrokeAndFillPath, StrokePath will not attempt to close the path by drawing a straight line from the first point on the path to the last point on the path.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |