CDC::FrameRgn
TOC
Collapse the table of content
Expand the table of content

CDC::FrameRgn

 

Draws a border around the region specified by pRgn using the brush specified by pBrush.


      BOOL FrameRgn(
   CRgn* pRgn,
   CBrush* pBrush,
   int nWidth,
   int nHeight 
);

pRgn

Points to the CRgn object that identifies the region to be enclosed in a border. The coordinates for the given region are specified in logical units.

pBrush

Points to the CBrush object that identifies the brush to be used to draw the border.

nWidth

Specifies the width of the border in vertical brush strokes in device units.

nHeight

Specifies the height of the border in horizontal brush strokes in device units.

Nonzero if the function is successful; otherwise 0.

Example

See the example for CRgn::CombineRgn.

Requirements

Header: afxwin.h

Show:
© 2016 Microsoft