CRectTracker Class
Allows an item to be displayed, moved, and resized in different fashions.
class CRectTracker
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CRectTracker object. |
Public Methods
Name |
Description |
---|---|
Called when the rectangle is resized. |
|
Renders the rectangle. |
|
Called when drawing the border of a CRectTracker object. |
|
Called to get the mask of a CRectTrackeritem's resize handles. |
|
Returns width and height of rectangle, including resize handles. |
|
Returns the current position of the cursor related to the CRectTracker object. |
|
Normalizes a hit-test code. |
|
Called when the rectangle has been resized or moved. |
|
Sets the cursor, depending on its position over the rectangle. |
|
Allows the user to manipulate the rectangle. |
|
Allows the user to "rubber-band" the selection. |
Public Data Members
Name |
Description |
---|---|
Determines size of resize handles. |
|
Current style(s) of the tracker. |
|
Current position (in pixels) of the rectangle. |
|
Determines minimum rectangle width and height. |
Remarks
CRectTracker does not have a base class.
Although the CRectTracker class is designed to allow the user to interact with OLE items by using a graphical interface, its use is not restricted to OLE-enabled applications. It can be used anywhere such a user interface is required.
CRectTracker borders can be solid or dotted lines. The item can be given a hatched border or overlaid with a hatched pattern to indicate different states of the item. You can place eight resize handles on either the outside or the inside border of the item. (For an explanation of the resize handles, see GetHandleMask.) Finally, a CRectTracker allows you to change the orientation of an item during resizing.
To use CRectTracker, construct a CRectTracker object and specify which display states are initialized. You can then use this interface to give the user visual feedback on the current status of the OLE item associated with the CRectTracker object.
For more information on using CRectTracker, see the article Trackers.
Inheritance Hierarchy
CRectTracker
Requirements
Header: afxext.h