Pie function
The Pie function draws a pieshaped wedge bounded by the intersection of an ellipse and two radials. The pie is outlined by using the current pen and filled by using the current brush.
Syntax
BOOL Pie( _In_ HDC hdc, _In_ int nLeftRect, _In_ int nTopRect, _In_ int nRightRect, _In_ int nBottomRect, _In_ int nXRadial1, _In_ int nYRadial1, _In_ int nXRadial2, _In_ int nYRadial2 );
Parameters
 hdc [in]

A handle to the device context.
 nLeftRect [in]

The xcoordinate, in logical coordinates, of the upperleft corner of the bounding rectangle.
 nTopRect [in]

The ycoordinate, in logical coordinates, of the upperleft corner of the bounding rectangle.
 nRightRect [in]

The xcoordinate, in logical coordinates, of the lowerright corner of the bounding rectangle.
 nBottomRect [in]

The ycoordinate, in logical coordinates, of the lowerright corner of the bounding rectangle.
 nXRadial1 [in]

The xcoordinate, in logical coordinates, of the endpoint of the first radial.
 nYRadial1 [in]

The ycoordinate, in logical coordinates, of the endpoint of the first radial.
 nXRadial2 [in]

The xcoordinate, in logical coordinates, of the endpoint of the second radial.
 nYRadial2 [in]

The ycoordinate, in logical coordinates, of the endpoint of the second radial.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
The curve of the pie is defined by an ellipse that fits the specified bounding rectangle. The curve begins at the point where the ellipse intersects the first radial and extends counterclockwise to the point where the ellipse intersects the second radial.
The current position is neither used nor updated by the Pie function.
Requirements
Minimum supported client 
Windows 2000 Professional [desktop apps only] 

Minimum supported server 
Windows 2000 Server [desktop apps only] 
Header 

Library 

DLL 

See also