A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



FrameRgn

The FrameRgn function draws a border around the specified region by using the specified brush.

VB4-32,5,6
Declare Function FrameRgn Lib "gdi32" Alias "FrameRgn" (ByVal hdc As Long, ByVal hRgn As Long, ByVal hBrush As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long

VB.NET
System.Drawing.Region

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Gdi32

Parameter Information
- hdc
Identifies the device context.

- hrgn
Identifies the region to be enclosed in a border. The region’s coordinates are presumed to be in logical units.

- hbr
Identifies the brush to be used to draw the border.

- nWidth
Specifies the width, in logical units, of vertical brush strokes.

- nHeight
Specifies the height, in logical units, of horizontal brush strokes.

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Last update: 07 April 2006