BOOL FrameRgn(hDC,hRgn,hBrush,nWidth,nHeight)
This function draws a border around the region specified by the hRgn parameter, using the brush specified by the hBrush parameter. The nWidth parameter specifies the width of the border in vertical brush strokes; the nHeight parameter specifies the height in horizontal brush strokes.
| Parameter | Type/Description | 
| hDC | HDC Identifies the device context. | |
| hRgn | HANDLE Identifies the region to be enclosed in a border. The coordinates for the given region are specified in device units. | |
| hBrush | HBRUSH Identifies the brush to be used to draw the border. | |
| nWidth | int Specifies the width in vertical brush strokes (in logical units). | |
| nHeight | int Specifies the height in horizontal brush strokes (in logical units). | 
The return value specifies the outcome of the function. It is nonzero if the function is successful. Otherwise, it is zero.