www.pudn.com > spacial.rar > spacialView.h


// spacialView.h : CspacialView 类的接口 
// 
 
 
#pragma once 
#include "atltypes.h" 
 
 
class CspacialView : public CScrollView 
{ 
protected: // 仅从序列化创建 
	CspacialView(); 
	DECLARE_DYNCREATE(CspacialView) 
 
// 属性 
public: 
	CspacialDoc* GetDocument() const; 
	 
 
// 操作 
public: 
 
// 重写 
	public: 
	virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图 
virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
protected: 
	virtual void OnInitialUpdate(); // 构造后第一次调用 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	CPoint origin; 
	CPoint now; 
 
// 实现 
public: 
	virtual ~CspacialView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// 生成的消息映射函数 
protected: 
	DECLARE_MESSAGE_MAP() 
public: 
	afx_msg void Negativges(); 
	 
	afx_msg void Histeq(); 
	afx_msg void OnUpdateEditUndo(CCmdUI *pCmdUI); 
	afx_msg void OnEditUndo(); 
	afx_msg void OnEditPaste(); 
	afx_msg void OnUpdateEditPaste(CCmdUI *pCmdUI); 
	afx_msg void OnViewZoomin(); 
	afx_msg void OnViewZoomout(); 
private: 
	CSize m_sizeDraw; 
	bool q; 
public: 
	afx_msg void OnVieworiginal(); 
	afx_msg void OnViewOriginal(); 
public: 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
public: 
	afx_msg void OnMButtonUp(UINT nFlags, CPoint point); 
public: 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
public: 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnHaarTrans(); 
	afx_msg void OnHaarInvtrans(); 
}; 
 
#ifndef _DEBUG  // spacialView.cpp 的调试版本 
inline CspacialDoc* CspacialView::GetDocument() const 
   { return reinterpret_cast(m_pDocument); } 
#endif