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

📄 diintdlg.h

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

#if !defined(AFX_FDIGITDLG_H__924D6B47_6707_11D1_B3C6_00C06C008DD6__INCLUDED_)
#define AFX_FDIGITDLG_H__924D6B47_6707_11D1_B3C6_00C06C008DD6__INCLUDED_

static BOOL	m_bContinue;
static BOOL m_bFlag;                // thread flag
static BOOL m_bDI0Flag, m_bDI1Flag, m_bIDI0Flag, m_bIDI1Flag, 
            m_StartFlag;            // Start button pressed flag
//static LONG	m_DriverHandle;		// driver handle
//static VOID	EventThread(void *);	// Event checking


/////////////////////////////////////////////////////////////////////////////
// CDiIntDlg dialog

class CDiIntDlg : public CDialog
{
// Construction
public:
	void KillThread();
	CDiIntDlg(CWnd* pParent = NULL);	// standard constructor
	static UINT	EventThread(LPVOID);	// Event checking

// Dialog Data
	//{{AFX_DATA(CFDIGITDlg)
	enum { IDD = IDD_DIINT_DIALOG };
	CButton	m_EnableBtn1;
	CButton	m_EnableBtn2;
	CButton	m_EnableBtn3;
	CButton	m_EnableBtn4;
    CButton	m_DisableBtn1;
	CButton	m_DisableBtn2;
	CButton	m_DisableBtn3;
	CButton	m_DisableBtn4;
	CButton	m_StopBtn;
	CButton	m_StartBtn;
   CButton  m_DeviceSelect;
	CSpinButtonCtrl	m_ChannelSpin;
	CStatic	m_IntEventCount;
	CStatic	m_ScanData;
	CStatic	m_DeviceName;
	DWORD	m_dwScanTime;
	UINT	m_uChannel;	
   UINT  m_uCount_IDI0;
   UINT  m_uCount_IDI1;
   UINT  m_uCount_DI0;
   UINT  m_uCount_DI1;
	//}}AFX_DATA
	ULONG m_ulDevNum;

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

// Implementation
protected:
	HICON	m_hIcon;
	LRESULT m_ErrCde;				// Return error code
	LONG	m_DriverHandle;			// driver handle
	PT_DioReadPortByte	m_ptDioReadPortByte;
	char	m_szErrMsg[80];			// Use for MESSAGEBOX function
	BOOL	m_bHiPriority;			// Evnt thread's priority
	void *  m_pThreadHandle;

	// Generated message map functions
	//{{AFX_MSG(CFDIGITDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAboutbox();
	afx_msg void OnSelectDevice();
	afx_msg void OnDeltaposChannelSpin(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnStartBtn();
	afx_msg void OnStopBtn();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnEnableBtn1();
	afx_msg void OnEnableBtn2();
	afx_msg void OnEnableBtn3();
	afx_msg void OnEnableBtn4();
    afx_msg void OnDisableBtn1();
	afx_msg void OnDisableBtn2();
	afx_msg void OnDisableBtn3();
	afx_msg void OnDisableBtn4();
	afx_msg void OnClose();
	virtual void OnOK();
	afx_msg void OnChangeScanTime();
	afx_msg void OnChangeCountDI0();
   afx_msg void OnChangeCountDI1();
   afx_msg void OnChangeCountIDI0();
   afx_msg void OnChangeCountIDI1();
	afx_msg void OnPriority2Select();
	afx_msg void OnPriority1Select();
	afx_msg void OnEventPriority1();
	afx_msg void OnEventPriority2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FDIGITDLG_H__924D6B47_6707_11D1_B3C6_00C06C008DD6__INCLUDED_)

⌨️ 快捷键说明

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