📄 11view.h
字号:
// 11View.h : interface of the CMy11View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_11VIEW_H__DE1059AE_39EB_494D_9CA0_C131C2980900__INCLUDED_)
#define AFX_11VIEW_H__DE1059AE_39EB_494D_9CA0_C131C2980900__INCLUDED_
#include "MainFrm.h"
#include "OS.h"
#include "math.h"
#include "DRIVCE.h"
#include "MemDC.h"
#include <process.h>
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_ITEM_CHANGE WM_USER+1
struct tagSYSTEMSTATE
{
int nState;//DI状态
BOOL bState;//是否为数字量接点
};
class CMy11View : public CView
{
protected: // create from serialization only
CMy11View();
DECLARE_DYNCREATE(CMy11View)
HANDLE m_pThread;
// Attributes
public:
CMy11Doc* GetDocument();
tagSYSTEMSTATE *m_Info;
int nVal;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy11View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
static UINT WINAPI Main_Thread_DI(LPVOID pParam);
void OnItemChange(WPARAM wParam,LPARAM lParam);
void ptDeviceReadDIByte();
virtual ~CMy11View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
void ShowMsg();
//{{AFX_MSG(CMy11View)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in 11View.cpp
inline CMy11Doc* CMy11View::GetDocument()
{ return (CMy11Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_11VIEW_H__DE1059AE_39EB_494D_9CA0_C131C2980900__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -