[Classes] [Prev] [Next] [Methods]

CRectangle

Methods Index

Heritage
Description
Usage
Environment
Protected Data Members
Public Methods
Constructor, Destructor, and Initialization Methods
Utilities

CRectangle


Heritage

Superclass: CShape

Subclasses: CSquare


Description

CRectangle objects paint a rectangle inside a CView or CSubview.


Usage

Create a CRectangle object and initialize it. Like all shapes, this class inherits all properties of CSubview, such as stickiness, enclosure, and so on.

To give the rectangle rounded corners, initialize it with isCornerRounded = TRUE and provide the desired corner width and height.


Environment

The lines in the rectangle are drawn with the pen; its interior is painted with the brush. You can set the color and pattern of both the pen and the brush. Also, you can set the pen style and width.


Protected Data Members

BOOLEAN itHasRoundedCorners Whether the rectangle has rounded corners
UNITS itsCornerWidth The width of the rounded corners, in pixels
UNITS itsCornerHeight Height of the rounded corners, in pixels


Public Methods

Constructor, Destructor, and Initialization Methods

CRectangle(CSubview* theEnclosure,
const CRect& theRegion);
CRectangle(const CRectangle& theRectangle);
CRectangle& operator=(const CRectangle& theRectangle);
virtual ~CRectangle(void);
BOOLEAN IRectangle(BOOLEAN hasRoundCorners		= FALSE,
UNITS theCornerWidth = 0,
UNITS theCornerHeight = 0,
BOOLEAN isVisible = TRUE,
GLUETYPE theGlue = NULLSTICKY);
virtual void Draw(const CRect& theClippingRegion);

Utilities

virtual void SetRoundedCorners(
BOOLEAN isCornerRounded, UNITS theCornerWidth=SAME,
UNITS theCornerHeight=SAME);



[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.