Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.5 KiB

  1. #ifndef __T_FHSEL_H__
  2. #define __T_FHSEL_H__
  3. #include "imgtools.h"
  4. #include "t_poly.h"
  5. class CFreehandSelectTool : public CPolygonTool
  6. {
  7. DECLARE_DYNAMIC(CFreehandSelectTool)
  8. protected:
  9. CRgn *m_pcRgnPoly;
  10. CRgn *m_pcRgnPolyBorder;
  11. int m_iNumPoints;
  12. void AdjustPointsForZoom( int iZoom );
  13. BOOL CreatePolyRegion ( int iZoom );
  14. BOOL CreatePolyRegion ( int iZoom, LPPOINT lpPoints, int iPoints );
  15. virtual BOOL SetupPenBrush( HDC hDC, BOOL bLeftButton, BOOL bSetup, BOOL bCtrlDown );
  16. virtual void AdjustPointsForConstraint( MTI *pmti );
  17. virtual void PreProcessPoints( MTI *pmti );
  18. virtual BOOL IsToolModal(void);
  19. public:
  20. CFreehandSelectTool();
  21. ~CFreehandSelectTool();
  22. BOOL ExpandPolyRegion( int iNewSizeX, int iNewSizeY );
  23. virtual void OnPaintOptions ( CDC* pDC, const CRect& paintRect,
  24. const CRect& optionsRect );
  25. virtual void OnClickOptions ( CImgToolWnd* pWnd, const CRect& optionsRect,
  26. const CPoint& clickPoint );
  27. virtual void OnStartDrag( CImgWnd* pImgWnd, MTI* pmti );
  28. virtual void OnEndDrag ( CImgWnd* pImgWnd, MTI* pmti );
  29. virtual void OnDrag ( CImgWnd* pImgWnd, MTI* pmti );
  30. virtual void OnCancel ( CImgWnd* pImgWnd );
  31. virtual void OnActivate ( BOOL bActivate );
  32. virtual BOOL CanEndMultiptOperation( MTI* pmti );
  33. friend class CImgWnd;
  34. };
  35. #endif // __T_FHSEL_H__