📄 vcimageview.h
字号:
// VCImageView.h : interface of the CVCImageView class
//
/////////////////////////////////////////////////////////////////////////////
#include "ImageProcess.h"
#define MAX_NUM 3000
#if !defined(AFX_VCIMAGEVIEW_H__9937CDAF_A8E4_11D7_B7BC_F965FBFDDC72__INCLUDED_)
#define AFX_VCIMAGEVIEW_H__9937CDAF_A8E4_11D7_B7BC_F965FBFDDC72__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CVCImageView : public CScrollView
{
protected: // create from serialization only
CVCImageView();
DECLARE_DYNCREATE(CVCImageView)
POINT rect_p[2],R0,R1;
int rect_n,rect_flag;
POINT area_p[MAX_NUM];
int area_n,area_flag;
POINT area_pa[MAX_NUM];
int area_na;
int dot[MAX_NUM],dot_n;
POINT old_coor;
int old_flag;
int move_flag,moveX0,moveY0;
int moveX,moveY;
// Attributes
public:
CVCImageDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVCImageView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CVCImageView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CVCImageView)
afx_msg void OnFileRefresh();
afx_msg void OnInvert();
afx_msg void OnColorToGray();
afx_msg void OnFlipHorzontal();
afx_msg void OnFlipVertical();
afx_msg void OnRotate15();
afx_msg void OnRotate30();
afx_msg void OnRotate45();
afx_msg void OnRotate60();
afx_msg void OnRotate75();
afx_msg void OnRotate90();
afx_msg void OnRotate180();
afx_msg void OnRotate270();
afx_msg void OnRed();
afx_msg void OnGreen();
afx_msg void OnBlue();
afx_msg void OnYellow();
afx_msg void OnCyan();
afx_msg void OnMagenta();
afx_msg void OnZoomIn2();
afx_msg void OnZoomIn3();
afx_msg void OnZoomOut2();
afx_msg void OnZoomOut3();
afx_msg void OnScale60();
afx_msg void OnScale80();
afx_msg void OnScale120();
afx_msg void OnScale150();
afx_msg void OnScale180();
afx_msg void OnCapture();
afx_msg void OnSingleCapto();
afx_msg void Rectangle();
afx_msg void Sketch();
afx_msg void OnCut();
afx_msg void OnMove();
afx_msg void OnSize(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg BOOL PointInDib(int x,int y);
afx_msg int LineCoor(int x,int y,int x1,int y1,POINT *dot);
afx_msg int LineToCode(POINT *area_p,int *dot);
afx_msg int CodeToTable(int *dot,POINT *area_p);
afx_msg void MoveImage(int X,int Y,int f);
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in VCImageView.cpp
inline CVCImageDoc* CVCImageView::GetDocument()
{ return (CVCImageDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VCIMAGEVIEW_H__9937CDAF_A8E4_11D7_B7BC_F965FBFDDC72__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -