Update-Installer/external/win32cpp/tutorials/Tutorial3/View.h

34 lines
537 B
C
Raw Normal View History

//////////////////////////////////////////////////////
// View.h
// Declaration of the CView class
#ifndef VIEW_H
#define VIEW_H
#include "WinCore.h"
#include <vector>
using std::vector;
class CView : public CWnd
{
public:
CView();
virtual ~CView(){}
protected:
virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
void DrawLine(int x, int y);
void OnLButtonDown(LPARAM lParam);
void OnLButtonUp(LPARAM lParam);
void OnMouseMove(WPARAM wParam, LPARAM lParam);
POINT m_OldPt;
};
#endif // CVIEW_H