Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>framerect()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FrameRect()
Draw a border around a rectangle using a specified brush
------------------------------------------------------------------------------

Syntax
FrameRect( <hDC>, <nLeft>, <nTop>, <nRight>, <nBottom>,
              <hBrush> )   -->   lSuccess

Arguments
<hDC> specifies the device context for a window.

<nLeft>, <nTop> specify the position of the top left-hand
corner of the rectangle in pixels.

<nRight>, <nBottom> specify the position of the bottom right-
hand corner of the rectangle in pixels.

<hBrush> specifies the brush to use for the frame (border).

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
This function uses the brush to draw the frame of a rectangle
as specified.  The interior is not filled.

The figure drawn extends up to and including the top and left
bounds, but excluding the bottom and right values.

Example
hBlueBrush = CreateHatchBrush( HS_CROSS, RGB( 0, 0, 255 ) )
FrameRect( hDC, 200, 200, 300, 300, hBlueBrush )


See Also: CreateHatchBrush() CreateSolidBrush() DeleteObject() GetStockObject() SelectObject()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson