MFC
Class CRectTracker
in AFXEXT.H
- Direct Known Subclasses:
- CControlRectTracker
- class CRectTracker
CRectTracker - simple rectangular tracking rectangle w/resize handles
|
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 )
|
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;
CRectTracker
public CRectTracker( LPCRECT lpSrcRect, UINT nStyle );
CRectTracker
public CRectTracker();
~CRectTracker
public virtual ~CRectTracker();
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 );