www.pudn.com > JingXiang-Design-Jeff.rar > DesignView.h


// DesignView.h : interface of the CDesignView class 
// 
///////////////////////////////////////////////////////////////////////////// 
#include "Histogramshow.h" 
#include "Para_Detect.h" 
#include "Image_Identify.h"	// Added by ClassView 
#if !defined(AFX_DESIGNVIEW_H__E94D220C_24D4_11D4_8C58_BC25C6E83A1C__INCLUDED_) 
#define AFX_DESIGNVIEW_H__E94D220C_24D4_11D4_8C58_BC25C6E83A1C__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CDesignView : public CScrollView 
{ 
protected: // create from serialization only 
	CDesignView(); 
	DECLARE_DYNCREATE(CDesignView) 
 
// Attributes 
public: 
	BOOL Is_Valid_OF_RBN_UP; 
	COLORREF CountForColor; 
	CDesignDoc* GetDocument(); 
	BOOL ConvertFromSelectedRectToReallyRect(void); 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CDesignView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE); 
	protected: 
	virtual void OnInitialUpdate(); // called first time after construct 
	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); 
	virtual BOOL OnScrollBy(CSize sizeScroll, BOOL bDoScroll = TRUE); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	float TrueRatio; 
	Image_Identify The_Identify; 
    Para_Detect *pPara_Detect; 
 
 
 
	CMenu *pForPopUp; 
	BOOL LancetFromSwitch(int Switch,RECT *pInput=NULL); 
 
	BOOL IsFlashed; 
	BOOL FlashedEnabled; 
	BOOL IsAreaLocked; 
	BOOL IsFlashRectShowed; 
	RECT RectForShow;//记录选择框当前窗口的位置,其值随窗口滚动而改变,可能为负值,为闪烁选择框函数使用 
	RECT RectTmp;    //记录选择框在位图中的位置,为让系统刷新窗口时使用 
	CPoint OrgPoint; 
	BOOL GetCurrentPointGray(int x,int y); 
	BOOL DisableSelect(void); 
	BOOL DrawSelectedRect(CDC* pDc,RECT TheRect,COLORREF PenColor=RGB(0,0,0)); 
	HCURSOR NormalCursor; 
	HCURSOR CursorForBMPSelected; 
	HistogramShow * pHiShow; 
	BOOL IsHistogramShowed; 
	CDesignDoc * pNowDoc; 
	int mNowRatio; 
	virtual ~CDesignView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CDesignView) 
	afx_msg void OnFuncLarger(); 
	afx_msg void OnFuncSmall(); 
	afx_msg void OnFuncChangeToColor(); 
	afx_msg void OnFuncChangeToGray(); 
	afx_msg void OnFuncRevert(); 
	afx_msg void OnViewShowHistogram(); 
	afx_msg void OnUpdateViewShowHistogram(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFuncChangeToColor(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFuncChangeToGray(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFuncLarger(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFuncRevert(CCmdUI* pCmdUI); 
	afx_msg void OnUpdateFuncSmall(CCmdUI* pCmdUI); 
	afx_msg void OnFuncSelectArea(); 
	afx_msg void OnUpdateFuncSelectArea(CCmdUI* pCmdUI); 
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnViewImageInfo(); 
	afx_msg void OnUpdateViewImageInfo(CCmdUI* pCmdUI); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnFuncAreaLocked(); 
	afx_msg void OnUpdateFuncAreaLocked(CCmdUI* pCmdUI); 
	afx_msg void OnFuncFlashSelectedArea(); 
	afx_msg void OnUpdateFuncFlashSelectedArea(CCmdUI* pCmdUI); 
	afx_msg void OnPictureprocessLancet(); 
	afx_msg void OnUpdatePictureprocessLancet(CCmdUI* pCmdUI); 
	afx_msg void OnUpdatePictureprocessCancelLancet(CCmdUI* pCmdUI); 
	afx_msg void OnPictureprocessCancelLancet(); 
	afx_msg void OnPictureprocessPreMedianfilter(); 
	afx_msg void OnUpdatePictureprocessPreMedianfilter(CCmdUI* pCmdUI); 
	afx_msg void OnFuncReloadGray(); 
	afx_msg void OnUpdateFuncReloadGray(CCmdUI* pCmdUI); 
	afx_msg void OnPictureprocessPreStrongBorder(); 
	afx_msg void OnUpdatePictureprocessPreStrongBorder(CCmdUI* pCmdUI); 
	afx_msg void OnPictureprocessConfirmLancet(); 
	afx_msg void OnUpdatePictureprocessConfirmLancet(CCmdUI* pCmdUI); 
	afx_msg void OnPictureprocessPreDetectBorder(); 
	afx_msg void OnUpdatePictureprocessPreDetectBorder(CCmdUI* pCmdUI); 
	afx_msg void OnFuncFlashScreen(); 
	afx_msg void OnUpdateFuncFlashScreen(CCmdUI* pCmdUI); 
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnCrystalAnalyseDetectParameter(); 
	afx_msg void OnUpdateCrystalAnalyseDetectParameter(CCmdUI* pCmdUI); 
	afx_msg void OnPictureprocessPreInserveImage(); 
	afx_msg void OnUpdatePictureprocessPreInserveImage(CCmdUI* pCmdUI); 
	afx_msg void OnImageIdentifyAreaDetect(); 
	afx_msg void OnUpdateImageIdentifyAreaDetect(CCmdUI* pCmdUI); 
	afx_msg void OnPictureprocessPreBrightAdjust(); 
	afx_msg void OnUpdatePictureprocessPreBrightAdjust(CCmdUI* pCmdUI); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in DesignView.cpp 
inline CDesignDoc* CDesignView::GetDocument() 
   { return (CDesignDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_DESIGNVIEW_H__E94D220C_24D4_11D4_8C58_BC25C6E83A1C__INCLUDED_)