📄 printpatview.h
字号:
// PrintPatView.h : interface of the CPrintPatView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PRINTPATVIEW_H__66291B57_D3C6_4E75_A6D5_9E895BC88AF9__INCLUDED_)
#define AFX_PRINTPATVIEW_H__66291B57_D3C6_4E75_A6D5_9E895BC88AF9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "AfxTempl.h"
struct Pels {
POINT Coordinate;
BYTE Blue;
BYTE Green;
BYTE Red;
};
class CPrintPatView : public CFormView
{
protected: // create from serialization only
CPrintPatView();
DECLARE_DYNCREATE(CPrintPatView)
public:
//{{AFX_DATA(CPrintPatView)
enum { IDD = IDD_PRINTPAT_FORM };
CListBox m_functionListBox;
CButton m_isSampleFinishCheck;
CListBox m_pattenListBox;
BOOL m_isSampleFinish;
//}}AFX_DATA
// Attributes
public:
CPrintPatDoc* GetDocument();
// Operations
public:
private:
enum ModeSelect {manual,automation};
enum ModeOfTwoKind {noChoice,rANDb,rANDg,bANDg};
enum PattenType {print=1,sign,shade};
CList<Pels,Pels> MyPatternPrint; //印张
CList<Pels,Pels> MyPatternSign; //签字
CList<Pels,Pels> MyPatternShade; //底纹
CList<POINT,POINT>m_drawLinePointsList;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPrintPatView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPrintPatView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CPrintPatView)
afx_msg void OnPaint();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnManRecognise();
afx_msg void OnAutoRecognise();
afx_msg void OnRedBlueMode();
afx_msg void OnRedGreenMode();
afx_msg void OnBlueGreenMode();
afx_msg void OnPatTwoMode();
afx_msg void OnPatThreeMode();
afx_msg void OnPrintPatSelect();
afx_msg void OnSignPatSelect();
afx_msg void OnShadePatSelect();
afx_msg void OnBeginSampling();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnIsSampleFinishCheck();
afx_msg void OnButtonPattenRec();
afx_msg void OnSampleAgain();
//}}AFX_MSG
afx_msg void OnUpdaeUIXIndicator(CCmdUI *pCmdUI);
afx_msg void OnUpdaeUIYIndicator(CCmdUI *pCmdUI);
afx_msg void OnUpdaeUIRIndicator(CCmdUI *pCmdUI);
afx_msg void OnUpdaeUIGIndicator(CCmdUI *pCmdUI);
afx_msg void OnUpdaeUIBIndicator(CCmdUI *pCmdUI);
afx_msg void OnUpdaeUICurrentColorIndicator(CCmdUI *pCmdUI);
DECLARE_MESSAGE_MAP()
private:
int m_indicator_B;
int m_indicator_G;
int m_indicator_R;
int m_indicator_Y;
int m_indicator_X;
BOOL m_NewlySamp;
BOOL m_BeginSamp;
ModeSelect m_RecMode;
ModeOfTwoKind m_TwoKindMode;
CBitmap m_bitmap;
int m_nWidth;
int m_nHeight;
int m_NumKinds;
PattenType m_patTypeSel;
int ListIndex;
POINT m_lineStart;
POINT m_lineEnd;
double coefficientOfTwo[3];
double coefficientOfThree[9];
public:
void TwoPointsToFunc(POINT point1,POINT point2);
void DrawReferenceFrame(void);
void DrawSampledPoints(void);
BOOL PointDetectTwo(int tempx,int tempy);
};
#ifndef _DEBUG // debug version in PrintPatView.cpp
inline CPrintPatDoc* CPrintPatView::GetDocument()
{ return (CPrintPatDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PRINTPATVIEW_H__66291B57_D3C6_4E75_A6D5_9E895BC88AF9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -