1 //////////////////////////////////////////////////////
\r
3 // Declaration of the CView class
\r
9 class CView : public CWnd
\r
14 virtual void ClearPoints();
\r
15 virtual BOOL FileOpen(LPCTSTR szFilename);
\r
16 virtual BOOL FileSave(LPCTSTR szFilename);
\r
17 virtual void SetPen(COLORREF Color);
\r
20 virtual void OnDraw(CDC* pDC);
\r
21 virtual void PreCreate(CREATESTRUCT &cs);
\r
22 virtual void PreRegisterClass(WNDCLASS &wc);
\r
23 virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
\r
34 void DrawLine(int x, int y);
\r
35 void OnLButtonDown(LPARAM lParam);
\r
36 void OnLButtonUp(LPARAM lParam);
\r
37 void OnMouseMove(WPARAM wParam, LPARAM lParam);
\r
38 void StorePoint(int x, int y, bool PenDown);
\r
41 std::vector<PlotPoint> m_points; // Points of lines to draw
\r
42 COLORREF m_PenColor;
\r