⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cntintdlg.h

📁 16 relay output channels and 16 isolated digital input channels LED indicators to show activated
💻 H
字号:
// CntIntDlg.h : header file
//

#if !defined(AFX_CNTINTDLG_H__574E31BA_06F5_4290_9F87_233A075C665C__INCLUDED_)
#define AFX_CNTINTDLG_H__574E31BA_06F5_4290_9F87_233A075C665C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCntIntDlg dialog

class CCntIntDlg : public CDialog
{
// Construction
public:
	CWinThread* pThread;
	static UINT EventThread(LPVOID ThreadArg);
	ULONG m_ulDevNum;
	CCntIntDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCntIntDlg)
	enum { IDD = IDD_CNTINT_DIALOG };
	CButton	m_chkTimer;
	CButton	m_btnSelectDev;
	CListCtrl	m_lstDI;
	CListCtrl	m_lstCounter;
	CButton	m_btnOk;
	CButton	m_btnStop;
	CButton	m_btnStart;
	CComboBox	m_Counter;
	CComboBox   m_CmbInt;
	CStatic	m_DeviceName;
	UINT	m_StartPort;
	UINT	m_StartCounter;
	UINT	m_PortCount;
	UINT	m_CntCount;
	UINT	m_CompData;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCntIntDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	ULONG m_InterruptSrc;
	USHORT m_CurCounter;
	LRESULT m_ErrCode;
	char m_szErrMsg[80];
	LONG m_DriverHandle;
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCntIntDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnSeldev();
	afx_msg void OnBtnstart();
	afx_msg void OnChangeStartport();
	afx_msg void OnChangePortcount();
	afx_msg void OnChangeStartcounter();
	afx_msg void OnChangeCntcount();
	afx_msg void OnBtnstop();
	afx_msg void OnSelchangeComcounter();
	afx_msg void OnChktm();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CNTINTDLG_H__574E31BA_06F5_4290_9F87_233A075C665C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -