Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDC::RoundRect
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL RoundRect( int x1, int y1, int x2, int y2, int x3, int y3 );
  BOOL RoundRect( LPRECT lpRect, POINT point );
 
  Parameter   Description
 
  <x1>        Specifies the x-coordinate of the upper-left corner of the
              rectangle (in logical units).
 
  <y1>        Specifies the y-coordinate of the upper-left corner of the
              rectangle (in logical units).
 
  <x2>        Specifies the x-coordinate of the lower-right corner of the
              rectangle (in logical units).
 
  <y2>        Specifies the y-coordinate of the lower-right corner of the
              rectangle (in logical units).
 
  <x3>        Specifies the width of the ellipse used to draw the rounded
              corners (in logical units).
 
  <y3>        Specifies the height of the ellipse used to draw the rounded
              corners (in logical units).
 
  <lpRect>    Specifies the bounding rectangle in logical units. You can
              pass either a CRect object or a pointer to a RECT
              structure for this parameter.
 
  <point>     The x-coordinate of <point> specifies the width of the
              ellipse to draw the rounded corners (in logical units). The
              y-coordinate of <point> specifies the height of the ellipse
              to draw the rounded corners (in logical units). You can pass
              either a POINT structure or a CPoint object for this
              parameter.
 
  Remarks
 
  Draws a rectangle with rounded corners, using the current pen. The
  interior of the rectangle is filled using the current brush.
 
  Return Value
 
  TRUE if the function is successful; otherwise FALSE.
 
  See Also
 
  CDC::Rectangle, ::RoundRect
 
 
                                     -♦-