Скачиваний:
21
Добавлен:
01.05.2014
Размер:
4.14 Кб
Скачать
/////////////////////////////////////////////////////////////////////////////
//
// CH_KSView.h : interface of the CCH_KSView class
//
/////////////////////////////////////////////////////////////////////////////


#if !defined(AFX_CH_KSVIEW_H__4231D562_35A8_4724_B4CD_80BF656BB539__INCLUDED_)
#define AFX_CH_KSVIEW_H__4231D562_35A8_4724_B4CD_80BF656BB539__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Point.h"
#include "Add.h"
#include "Delete.h"
#include "Step.h"
#include "Edit.h"
#include "Random.h"
#include "Image.h"
#include <fstream.h>

class CCH_KSView : public CScrollView
{
protected: // create from serialization only
	CCH_KSView();
	DECLARE_DYNCREATE(CCH_KSView)

public:
	CCH_KSDoc* GetDocument();
	
	TImage Image;
	HCURSOR lhCursor;
	CString x, y;
	char ini_file[MAX_PATH];
	
	//{{AFX_VIRTUAL(CCH_KSView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	//}}AFX_VIRTUAL

	virtual ~CCH_KSView();

protected:
	afx_msg void OnUpdateIndicatorCHP(CCmdUI *pCmdUI);
	afx_msg void OnUpdateIndicatorX(CCmdUI *pCmdUI);
	afx_msg void OnUpdateIndicatorY(CCmdUI *pCmdUI);
    afx_msg void OnUpdateIndicatorScale(CCmdUI* pCmdUI);
    afx_msg void OnUpdateIndicatorSpace(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMenuPoints(CCmdUI* pCmdUI);
    afx_msg void OnUpdateMenuPointsDeleteEdit(CCmdUI* pCmdUI);
    afx_msg void OnUpdateMenuPointsAdd(CCmdUI* pCmdUI);

	//{{AFX_MSG(CCH_KSView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnShowText();
	afx_msg void OnUpdateShowText(CCmdUI* pCmdUI);
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnZoomIn();
	afx_msg void OnZoomOut();
	afx_msg void OnUpdateZoomOut(CCmdUI* pCmdUI);
	afx_msg void OnUpdateZoomIn(CCmdUI* pCmdUI);
	afx_msg void OnEditCopy();
	afx_msg void OnEditCut();
	afx_msg void OnEditPaste();
	afx_msg void OnShowDiag();
	afx_msg void OnUpdateShowDiag(CCmdUI* pCmdUI);
	afx_msg void OnSaveText();
	afx_msg void OnOpenText();
	afx_msg void OnPointsAdd();
	afx_msg void OnPointsDel();
	afx_msg void OnStepByStep();
	afx_msg void OnPointsEdt();
	afx_msg void OnPointsRnd();
	afx_msg void OnBestFit();
	afx_msg void OnStepByStepToolbar();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnStop();
	afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	afx_msg void OnPointsDelete();
	afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePointsDelete(CCmdUI* pCmdUI);
	afx_msg void OnOneToOne();
	afx_msg void OnUpdateOneToOne(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
	afx_msg void OnUpdateRewind(CCmdUI* pCmdUI);
	afx_msg void OnDemo();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnUpdateDemo(CCmdUI* pCmdUI);
	afx_msg void OnRewind();
	afx_msg void OnUpdateBestFit(CCmdUI* pCmdUI);
	afx_msg void OnShowPoints();
	afx_msg void OnUpdateShowPoints(CCmdUI* pCmdUI);
	afx_msg void OnPause();
	afx_msg void OnUpdatePause(CCmdUI* pCmdUI);
	afx_msg void OnUpdateStepByStepToolbar(CCmdUI* pCmdUI);
	afx_msg void OnBack();
	afx_msg void OnUpdateBack(CCmdUI* pCmdUI);
	afx_msg void OnUpdateOpenText(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

        inline CCH_KSDoc* CCH_KSView::GetDocument()
        { return (CCH_KSDoc*) m_pDocument; }

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

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