📄 lihaoview.h
字号:
// LiHaoView.h : interface of the CLiHaoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_LIHAOVIEW_H__1CF11AAE_8E09_4F76_99E8_85ECE405CBB7__INCLUDED_)
#define AFX_LIHAOVIEW_H__1CF11AAE_8E09_4F76_99E8_85ECE405CBB7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define Grid 20
#define Width 600
#define DIN_PORT 0xf1
#include "CH365DLL.H"
class CLiHaoSet;
class CLiHaoView : public CRecordView
{
protected: // create from serialization only
CLiHaoView();
DECLARE_DYNCREATE(CLiHaoView)
public:
UCHAR data,Input_data,mByte;
int i,j,k;
int a;
//{{AFX_DATA(CLiHaoView)
enum { IDD = IDD_LIHAO_FORM };
CLiHaoSet* m_pSet;
UCHAR m_data1;
UCHAR m_data2;
int m_iSelect;
//}}AFX_DATA
// Attributes
public:
CLiHaoDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLiHaoView)
public:
virtual CRecordset* OnGetRecordset();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
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 OnDraw(CDC* pDC);
//}}AFX_VIRTUAL
// Implementation
public:
void Write_data(UCHAR data);
UCHAR Read_data();
POINT apt[401],test[401];
void DrawBegin(CClientDC *pDC);
UINT PointRand(UINT max);
int caiji;
virtual ~CLiHaoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CLiHaoView)
afx_msg void OnCaijiStop();
afx_msg void OnCaijiBegin();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTest();
afx_msg void OnTestStop();
afx_msg void OnMenuTest();
afx_msg void OnChangeEdit2();
afx_msg void OnChangeRoadSelect();
afx_msg void OnButton3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
// int i;
};
#ifndef _DEBUG // debug version in LiHaoView.cpp
inline CLiHaoDoc* CLiHaoView::GetDocument()
{ return (CLiHaoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LIHAOVIEW_H__1CF11AAE_8E09_4F76_99E8_85ECE405CBB7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -