BOOL FrameRgn(hdc, hrgn, hbr, nWidth, nHeight) | |||||
HDC hdc; | /* handle of a device context | */ | |||
HRGN hrgn; | /* handle of the region to be framed | */ | |||
HBRUSH hbr; | /* handle of the brush used to draw the border | */ | |||
int nWidth; | /* width of region frame | */ | |||
int nHeight; | /* height of region frame | */ |
The FrameRgn function draws a border around a region, using the specified brush.
hdc
Identifies the device context.
hrgn
Identifies the region to be enclosed in a border. The coordinates in the region are assumed to be in logical units.
hbr
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.
The return value is TRUE if the function is successful. Otherwise, it is FALSE.