// MainFrm.h : declaration of the class CMainFrame // #pragma once #include "DllInterface.h" class CIMTDemoApp; class CMainFrame : public CFrameWnd { public: CMainFrame(); virtual ~CMainFrame(); void SetRect( RECT& ); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: DECLARE_DYNCREATE(CMainFrame) void DrawCurves(); void DrawPoint( CDC*, CPoint&, COLORREF ); void DrawText(); void PrintDistance( CPoint pt ); void PrintCoordinates( CPoint pt ); //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnOpenfile(); afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); afx_msg void OnSetFocus( CWnd* wnd ); afx_msg void OnMove( int, int ); afx_msg void OnDraw( CDC* pDC ); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: CRect GetTextRect(); void PrintText( CString text ); void ResizeWindow(); HCURSOR m_hArrow; HCURSOR m_hCross; BOOL m_canChange; BOOL m_initialized; CButton m_quitBtn; CRect m_wRect; CRect m_cRect; CStatusBar m_sBar; int firstPoint; CImage m_image; DllInterface eimInterface; };