Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FrameRgn function

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    nWidth,
  _In_  int    nHeight
);

Parameters

hdc [in]

Handle to the device context.

hrgn [in]

Handle to the region to be enclosed in a border. The region's coordinates are presumed to be in logical units.

hbr [in]

Handle to the brush to be used to draw the border.

nWidth [in]

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

nHeight [in]

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Regions Overview
Region Functions
FillRgn
PaintRgn

 

 

Community Additions

ADD
Show:
© 2015 Microsoft