FrameRgn function (wingdi.h)
The FrameRgn function draws a border around the specified region by using the specified brush.
Syntax
BOOL FrameRgn(
[in] HDC hdc,
[in] HRGN hrgn,
[in] HBRUSH hbr,
[in] int w,
[in] int h
);
Parameters
[in] hdc
Handle to the device context.
[in] hrgn
Handle to the region to be enclosed in a border. The region's coordinates are presumed to be in logical units.
[in] hbr
Handle to the brush to be used to draw the border.
[in] w
Specifies the width, in logical units, of vertical brush strokes.
[in] h
Specifies the height, in logical units, of horizontal brush strokes.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |