MyPaint/CPaintView.h
2022-02-24 06:02:44 +03:00

19 lines
371 B
C++

#pragma once
#include <afxwin.h>
class CPaintView : public CWnd {
public:
CPaintView() {};
protected:
CPoint startp = -1, endp = -1;
BOOL PreCreateWindow(CREATESTRUCT& cs);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
DECLARE_MESSAGE_MAP()
};