MainFrm.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // MainFrm.h : declaration of the class CMainFrame
  2. //
  3. #pragma once
  4. #include "DllInterface.h"
  5. class CIMTDemoApp;
  6. class CMainFrame : public CFrameWnd
  7. {
  8. public:
  9. CMainFrame();
  10. virtual ~CMainFrame();
  11. void SetRect( RECT& );
  12. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  13. protected:
  14. DECLARE_DYNCREATE(CMainFrame)
  15. void DrawCurves();
  16. void DrawPoint( CDC*, CPoint&, COLORREF );
  17. void DrawText();
  18. void PrintDistance( CPoint pt );
  19. void PrintCoordinates( CPoint pt );
  20. //{{AFX_MSG(CMainFrame)
  21. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  22. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  23. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  24. afx_msg void OnOpenfile();
  25. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  26. afx_msg void OnSetFocus( CWnd* wnd );
  27. afx_msg void OnMove( int, int );
  28. afx_msg void OnDraw( CDC* pDC );
  29. //}}AFX_MSG
  30. DECLARE_MESSAGE_MAP()
  31. private:
  32. CRect GetTextRect();
  33. void PrintText( CString text );
  34. void ResizeWindow();
  35. HCURSOR m_hArrow;
  36. HCURSOR m_hCross;
  37. BOOL m_canChange;
  38. BOOL m_initialized;
  39. CButton m_quitBtn;
  40. CRect m_wRect;
  41. CRect m_cRect;
  42. CStatusBar m_sBar;
  43. int firstPoint;
  44. CImage m_image;
  45. DllInterface eimInterface;
  46. };