1 //////////////////////////////////////////////////////
\r
3 // Declaration of the CView class
\r
15 class CView : public CWnd
\r
20 virtual void SetPen(COLORREF Color);
\r
23 virtual void OnDraw(CDC* pDC);
\r
24 virtual void PreCreate(CREATESTRUCT &cs);
\r
25 virtual void PreRegisterClass(WNDCLASS &wc);
\r
26 virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
\r
37 void DrawLine(int x, int y);
\r
38 void OnLButtonDown(LPARAM lParam);
\r
39 void OnLButtonUp(LPARAM lParam);
\r
40 void OnMouseMove(WPARAM wParam, LPARAM lParam);
\r
41 void StorePoint(int x, int y, bool PenDown);
\r
44 vector<PlotPoint> m_points; // Points of lines to draw
\r
45 COLORREF m_PenColor;
\r