csimutil.hxx
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 1k
Category:

Windows Develop

Development Platform:

Visual C++

  1. #ifndef I_CSIMUTIL_HXX_
  2. #define I_CSIMUTIL_HXX_
  3. #pragma INCMSG("--- Beg 'csimutil.hxx'")
  4. #define LINE_SIZE_WIDTH 3
  5. #define CORNER_SIZE 3
  6. #define SHAPE_TYPE_RECT 0
  7. #define SHAPE_TYPE_CIRCLE 1
  8. #define SHAPE_TYPE_POLY 2
  9. #define SELECT_MODE 3
  10. #define DELIMS _T(", ;")
  11. MtExtern(CPointAry)
  12. MtExtern(CPointAry_pv)
  13. DECLARE_CDataAry(CPointAry, POINT, Mt(CPointAry), Mt(CPointAry_pv))
  14. typedef struct
  15. {
  16.     LONG lx, ly, lradius;
  17. } SCircleCoords;
  18. typedef struct
  19. {
  20.     HRGN hPoly;
  21. } SPolyCoords;
  22. union CoordinateUnion
  23. {
  24.     RECT Rect;
  25.     SCircleCoords Circle;
  26.     SPolyCoords Polygon;
  27. };
  28. HRESULT NextNum(LONG *plNum, TCHAR **ppch);
  29. BOOL PointInCircle(POINT pt, LONG lx, LONG ly, LONG lradius);
  30. BOOL Contains(POINT pt, union CoordinateUnion coords, UINT nShapeType);
  31. #pragma INCMSG("--- End 'csimutil.hxx'")
  32. #else
  33. #pragma INCMSG("*** Dup 'csimutil.hxx'")
  34. #endif