BeginPath

  BOOL BeginPath(hdc)    
  HDC hdc;    

The BeginPath function starts a path bracket; subsequent calls to drawing functions define the shape and size of a path. BeginPath initializes the path associated with the DC, discarding the previous path, if any. All subsequent drawing functions called for that DC, up to the next call to EndPath, apply to the new path.

Parameters

hdc

Identifies the device context.

Return Value

The return value is TRUE if the call succeeded, otherwise FALSE.

Comments

The following drawing functions will add to the path:

AngleArc  
Arc  
ArcTo  
Chord  
CloseFigure  
Ellipse  
ExtTextOut  
LineTo  
MoveToEx  
Pie  
PolyBezier  
PolyBezierTo  
PolyDraw  
Polygon  
Polyline  
PolylineTo  
PolyPolygon  
PolyPolyline  
Rectangle  
RoundRect  
TextOut  

See Also

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