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::FrameRgn
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL FrameRgn( CRgn* pRgn, CBrush* pBrush, int nWidth, int nHeight );
 
  Parameter   Description
 
  <pRgn>      Points to the CRgn object that identifies the region to be
              enclosed in a border. The coordinates for the given region
              are specified in device units.
 
  <pBrush>    Points to the CBrush object that identifies the brush to be
              used to draw the border.
 
  <nWidth>    Specifies the width in vertical brush strokes (in logical
              units).
 
  <nHeight>   Specifies the height in horizontal brush strokes (in logical
              units).
 
  Remarks
 
  Draws a border around the region specified by <pRgn>, using the brush
  specified by <pBrush>. The <nWidth> parameter specifies the width of the
  border in vertical brush strokes; <nHeight> specifies the height in
  horizontal brush strokes.
 
  Return Value
 
  TRUE if the function is successful; otherwise FALSE.
 
  See Also
 
  ::FrameRgn, CBrush, CRgn
 
 
                                     -♦-