#pragma once enum CStyleFlags { // solidLine = 1, dottedLine = 2, hatchedBorder = 4, // resizeInside = 8, resizeOutside = 16, hatchInside = 32, crossLine = 64, xLine = 128, }; class AFX_EXT_CLASS CImageTracker : public CRectTracker { public: CImageTracker(void); CImageTracker(LPCRECT lpSrcRect, UINT nStyle); virtual ~CImageTracker(void); BOOL Track(CWnd* pWnd, CPoint point, BOOL bAllowInvert, CWnd* pWndClipTo=NULL); BOOL TrackRubberBand(CWnd* pWnd, CPoint point, BOOL bAllowInvert); void Draw(CDC* pDC) const; protected: BOOL TrackHandle(int nHandle, CWnd* pWnd, CPoint point, CWnd* pWndClipTo); };