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

CSquare

Methods Index

Heritage
Description
Usage
Environment
Public Methods

CSquare


Heritage

Superclass: CRectangle

Subclasses: None


Description

CSquare objects paint a square inside a CSubview.


Usage

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


Environment

The lines of the square 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 width.

See Also: For more information on environmental attributes, see CBrush, CPen, and CEnvironment. .


Public Methods

CSquare(CSubview* theEnclosure, 
const CPoint& theTopLeftPoint, int theSideLength);
CSquare(const CSquare& theSquare);
CSquare& operator=(const CSquare& theSquare);
virtual ~CSquare();
BOOLEAN ISquare(BOOLEAN hasRoundCorners		= FALSE,
int theCornerWidth = 0,
int theCornerHeight = 0,
BOOLEAN isVisible = TRUE,
GLUETYPE theGlue = NULLSTICKY);
virtual void Size(const CRect& theNewSize);


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

support@xvt.com


Visit our online help desk for tech support

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