1 //////////////////////////////////////////////////////
\r
3 // Declaration of the CView class
\r
10 #include "wincore.h"
\r
16 class CView : public CWnd
\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
36 void DrawLine(int x, int y);
\r
37 void OnLButtonDown(LPARAM lParam);
\r
38 void OnLButtonUp(LPARAM lParam);
\r
39 void OnMouseMove(WPARAM wParam, LPARAM lParam);
\r
40 void StorePoint(int x, int y, bool PenDown);
\r
43 vector<PlotPoint> m_points; // Points of lines to draw
\r