home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CRectTracker

   in AFXEXT.H
Direct Known Subclasses:
CControlRectTracker

class CRectTracker

CRectTracker - simple rectangular tracking rectangle w/resize handles


Inner Classes, Typedefs, and Enums
enum CRectTracker::StyleFlags
          
enum CRectTracker::TrackerHit
          
 
Field Summary
protected BOOL m_bAllowInvert
          
protected BOOL m_bErase
          
protected BOOL m_bFinalErase
          
 int m_nHandleSize
          
 UINT m_nStyle
          
 CRect m_rect
          
protected CRect m_rectLast
          
protected CSize m_sizeLast
          
 CSize m_sizeMin
          
 
Constructor Summary
CRectTracker( LPCRECT lpSrcRect, UINT nStyle )
          
CRectTracker()
          
virtual ~CRectTracker()
          
 
Method Summary
 virtual void AdjustRect( int nHandle, LPRECT lpRect )
          
protected void Construct()
          
 void Draw( CDC* pDC ) const
          
 virtual void DrawTrackerRect( LPCRECT lpRect, CWnd* pWndClipTo, CDC* pDC, CWnd* pWnd )
          
 virtual UINT GetHandleMask() const
          
protected void GetHandleRect( int nHandle, CRect* pHandleRect ) const
          
protected virtual int GetHandleSize( LPCRECT lpRect = NULL ) const
          
protected void GetModifyPointers( int nHandle, int** ppx, int** ppy, int* px, int* py )
          
 void GetTrueRect( LPRECT lpTrueRect ) const
          
 int HitTest( CPoint point ) const
          
protected int HitTestHandles( CPoint point ) const
          
 int NormalizeHit( int nHandle ) const
          
 virtual void OnChangedRect( const CRect& rectOld )
          
 BOOL SetCursor( CWnd* pWnd, UINT nHitTest ) const
          
 BOOL Track( CWnd* pWnd, CPoint point, BOOL bAllowInvert = FALSE, CWnd* pWndClipTo = NULL )
          
protected BOOL TrackHandle( int nHandle, CWnd* pWnd, CPoint point, CWnd* pWndClipTo )
          
 BOOL TrackRubberBand( CWnd* pWnd, CPoint point, BOOL bAllowInvert = TRUE )
          
 

Field Detail

m_bAllowInvert

protected BOOL m_bAllowInvert;

m_bErase

protected BOOL m_bErase;

m_bFinalErase

protected BOOL m_bFinalErase;

m_nHandleSize

public int m_nHandleSize;

m_nStyle

public UINT m_nStyle;

m_rect

public CRect m_rect;

m_rectLast

protected CRect m_rectLast;

m_sizeLast

protected CSize m_sizeLast;

m_sizeMin

public CSize m_sizeMin;


Constructor Detail

CRectTracker

public CRectTracker( LPCRECT lpSrcRect, UINT nStyle );

CRectTracker

public CRectTracker();

~CRectTracker

public virtual ~CRectTracker();


Method Detail

AdjustRect

public virtual void AdjustRect( int nHandle, LPRECT lpRect );

Construct

protected void Construct();

Draw

public void Draw( CDC* pDC ) const;

DrawTrackerRect

public virtual void DrawTrackerRect( LPCRECT lpRect, CWnd* pWndClipTo, CDC* pDC, CWnd* pWnd );

GetHandleMask

public virtual UINT GetHandleMask() const;

GetHandleRect

protected void GetHandleRect( int nHandle, CRect* pHandleRect ) const;

GetHandleSize

protected virtual int GetHandleSize( LPCRECT lpRect = NULL ) const;

GetModifyPointers

protected void GetModifyPointers( int nHandle, int** ppx, int** ppy, int* px, int* py );

GetTrueRect

public void GetTrueRect( LPRECT lpTrueRect ) const;

HitTest

public int HitTest( CPoint point ) const;

HitTestHandles

protected int HitTestHandles( CPoint point ) const;

NormalizeHit

public int NormalizeHit( int nHandle ) const;

OnChangedRect

public virtual void OnChangedRect( const CRect& rectOld );

SetCursor

public BOOL SetCursor( CWnd* pWnd, UINT nHitTest ) const;

Track

public BOOL Track( CWnd* pWnd, CPoint point, BOOL bAllowInvert = FALSE, CWnd* pWndClipTo = NULL );

TrackHandle

protected BOOL TrackHandle( int nHandle, CWnd* pWnd, CPoint point, CWnd* pWndClipTo );

TrackRubberBand

public BOOL TrackRubberBand( CWnd* pWnd, CPoint point, BOOL bAllowInvert = TRUE );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD