This topic has not yet been rated - Rate this topic

StrokePath function

The StrokePath function renders the specified path by using the current pen.

Syntax


BOOL StrokePath(
  _In_  HDC hdc
);

Parameters

hdc [in]

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Paths Overview
Path Functions
BeginPath
EndPath
ExtCreatePen

 

 

Build date: 10/25/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.