Condividi tramite


CRectTracker Class

Allows an item to be displayed, moved, and resized in different fashions.

class CRectTracker

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.

Requirements

Header: afxext.h

See Also

Reference

Hierarchy Chart

COleResizeBar Class

CRect Class

CRectTracker::GetHandleMask

Other Resources

MFC Sample TRACKER

MFC Sample DRAWCLI

CRectTracker Members