BOOL FrameRgn( CRgn* pRgn, CBrush* pBrush, int nWidth, int nHeight );
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).
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.
TRUE if the function is successful; otherwise FALSE.
::FrameRgn, CBrush, CRgn