BeginPath  4JELMK 

The BeginPath function opens a path bracket in the specified device context.

BOOL BeginPath(

    HDC hdc

// handle to device context

   );

 

 

Parameters

hdc

Identifies the device context.

 

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError11C2VS7.

Remarks

After a path bracket is open, an application can begin calling GDI drawing functions to define the points that lie in the path. An application can close an open path bracket by calling the EndPathT8VXHK function.

When an application calls BeginPath for a device context, any previous paths are discarded from that device context.

Windows NT:

The following drawing functions define points in a path:

AngleArc28JJZ8Z

LineTo2IMC_PJ

Polyline62R.I2

Arc.B5ZMM

MoveToExCIYAL8

PolylineToHKR5M9

ArcToQIS17K

Pie1KTN_HD

PolyPolygon0MUSA3

Chord1CTU.LP

PolyBezier1MZK8B1

PolyPolylineEKPAWW

CloseFigureLOQ_OE

PolyBezierToZMS2RA

Rectangle0MLBFI

Ellipse1DJ1.3X

PolyDraw62JE.D

RoundRect3PKA_TI

ExtTextOut9DXAAD

PolygonZXL0PS

TextOutMWUEKO

 

Windows 95:

When constructing a path, only the CloseFigure, ExtTextOut, LineTo, MoveToEx, PolyBezier, PolyBezierTo, Polygon, Polyline, PolylineTo, PolyPolygon, PolyPolyline, and TextOut functions are recorded.

See Also

EndPath, FillPath, PathToRegion, SelectClipPath, StrokeAndFillPath, StrokePath, WidenPath