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::FrameRect
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void FrameRect( LPRECT lpRect, CBrush* pBrush );
 
  Parameter   Description
 
  <lpRect>    Points to a RECT or CRect that contains the logical
              coordinates of the upper-left and lower-right corners of the
              rectangle. You can also pass a CRect object for this
              parameter.
 
  <pBrush>    Identifies the brush to be used for framing the rectangle.
 
  Remarks
 
  Draws a border around the rectangle specified by <lpRect>. The function
  uses the given brush to draw the border. The width and height of the
  border is always one logical unit.
 
  If the rectangle's bottom coordinate is less than or equal to top, or if
  right is less than or equal to left, the rectangle is not drawn.
 
  See Also
 
  CBrush, ::FrameRect
 
 
                                     -♦-