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

📄 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__A41649E8_8310_4CDE_BA59_22BB39814968__INCLUDED_)
#define AFX_CNTINTDLG_H__A41649E8_8310_4CDE_BA59_22BB39814968__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCntIntDlg dialog
//#include "include\device833.h"
#include "..\..\..\..\..\Include\driver.h"

#define COUNT_NUMBER    3
#define COL_NUMER       6

typedef struct _CONFIG_833
{
	//   DEVCONFIG_QCOUNTER   DevCfg;
	PT_QCounterConfigSys   CounterConfigSys;
	//PT_EnableEvent         EnableEvent;
	PT_QCounterConfig      CounterConfig[COUNT_NUMBER];
	PT_QCounterStart       CountStart[COUNT_NUMBER];	
	USHORT  usInterrupt;    
} CONFIG_833, *PCONFIG_833;

typedef struct _THREAD_PAR
{
	HWND  hWnd;
	LONG  DeviceHandle;
} THREAD_PAR, *PTHREAD_PAR;

class CCntIntDlg : public CDialog
{
// Construction
public:
	void StopThread();
	void UpdateContentConfig();
	void ResetCounterConfig(int counter);
	int m_nCounter;
	void SetInterruptValue(int nID,int nOffset);
	void InitConfigParameter();
	CCntIntDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCntIntDlg)
	enum { IDD = IDD_CNTINT_DIALOG };
	CStatic	m_staticDI1;
	CStatic	m_staticDI0;
	CListCtrl	m_listCnt;
	CStatic	m_DeviceName;
	CComboBox	m_comboSystemLock;
	CComboBox	m_comboLatchSource;
	CComboBox	m_comboInputMode;
	CComboBox	m_comboCnt;
	CComboBox	m_comboCascade;
	//}}AFX_DATA

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

// Implementation
protected:
	void InitControl();
	LONG m_DriverHandle;
	ULONG m_ulDevNum;
	BOOL	m_baOverflowLock[COUNT_NUMBER];
	BOOL	m_baResetCounterAfterLatch[COUNT_NUMBER];
	BOOL	m_baResetValueTo0x8[COUNT_NUMBER];
	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();
	afx_msg void OnSelectDevice();
	afx_msg void OnClose();
	afx_msg void OnConfigure833Parameter();
	afx_msg void OnChkditimer();
	afx_msg void OnChkintindex();
	afx_msg void OnChkintoverflow();
	afx_msg void OnChklock();
	afx_msg void OnChkresetlatch();
	afx_msg void OnChkresetvalue();
	afx_msg void OnSelchangeCounter();
	afx_msg void OnSelchangeInputMode();
	afx_msg void OnSelchangeLatchSource();
	afx_msg void OnRddi1();
	afx_msg void OnRdtimer();
	afx_msg void OnSelchangeCmbsymclock();
	afx_msg void OnSelchangeCmbcascade();
	afx_msg void OnChkdi0();
	afx_msg void OnBtnEnable();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnBtnDisable();
	afx_msg void OnBtnresetcounter();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	USHORT m_usInterrupt;
};

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

#endif // !defined(AFX_CNTINTDLG_H__A41649E8_8310_4CDE_BA59_22BB39814968__INCLUDED_)

⌨️ 快捷键说明

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