Скачиваний:
17
Добавлен:
01.05.2014
Размер:
1.93 Кб
Скачать
#if !defined(AFX_POINTSVIEW_H__280B79F3_17EC_439F_8903_A3B2EA965CFE__INCLUDED_)
#define AFX_POINTSVIEW_H__280B79F3_17EC_439F_8903_A3B2EA965CFE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PointsView.h : header file
//
#include "RegionSearchDoc.h"
/////////////////////////////////////////////////////////////////////////////
// CPointsView view

class CPointsView : public CView
{
protected:
	CPointsView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CPointsView)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPointsView)
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	//}}AFX_VIRTUAL

// Implementation
	CRegionSearchDoc* GetDocument() // non-debug version is inline
	{
		ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CRegionSearchDoc)));
		return (CRegionSearchDoc*)m_pDocument;
	}
protected:
	virtual ~CPointsView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CPointsView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	int XToScreen(int x);
	int YToScreen(int y);
	int XToLogical(int x);
	int YToLogical(int y);
	CPoint PointToLogical(CPoint p);
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_POINTSVIEW_H__280B79F3_17EC_439F_8903_A3B2EA965CFE__INCLUDED_)
Соседние файлы в папке Source