CornerBox.h
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 1k
Category:

Graph program

Development Platform:

Visual C++

  1. #if !defined(AFX_CORNERBOX_H__B14AEFE5_348C_4365_AE70_C54A1FA241D5__INCLUDED_)
  2. #define AFX_CORNERBOX_H__B14AEFE5_348C_4365_AE70_C54A1FA241D5__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // CornerBox.h : header file
  7. //
  8. #ifndef MEASURE_PIXELS
  9. #define MEASURE_PIXELS 0
  10. #define MEASURE_INCHES 1
  11. #define MEASURE_CENTIMETERS 2
  12. #endif
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CCornerBox window
  15. class CCornerBox : public CWnd
  16. {
  17. // Construction
  18. public:
  19. CCornerBox();
  20. // Attributes
  21. public:
  22. // Operations
  23. public:
  24. void SetMeasurements( int measurements );
  25. int GetMeasurements() const;
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CCornerBox)
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. public:
  32. virtual ~CCornerBox();
  33. // Generated message map functions
  34. protected:
  35. //{{AFX_MSG(CCornerBox)
  36. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  37. afx_msg void OnPaint();
  38. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. private:
  42. int m_measurements;
  43. };
  44. extern UINT UWM_MEASUREMENTS;
  45. /////////////////////////////////////////////////////////////////////////////
  46. //{{AFX_INSERT_LOCATION}}
  47. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  48. #endif // !defined(AFX_CORNERBOX_H__B14AEFE5_348C_4365_AE70_C54A1FA241D5__INCLUDED_)