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

📄 fdidlg.h

📁 16 relay output channels and 16 isolated digital input channels LED indicators to show activated
💻 H
字号:
// FDiginDlg.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;
//static LONG	m_DriverHandle;		// driver handle
//static VOID	EventThread(void *);	// Event checking


/////////////////////////////////////////////////////////////////////////////
// CFDiginDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CFDIGITDlg)
	enum { IDD = IDD_FDIGIN_DIALOG };
	CButton	m_EnableBtn;
	CButton	m_DisableBtn;
	CButton	m_StopBtn;
	CButton	m_StartBtn;
	CButton	m_CloseBtn;
    CButton  m_DeviceSelect;
	CSpinButtonCtrl	m_ChannelSpin;
	CStatic	m_IntEventCount;
	CStatic	m_ScanData;
	CStatic	m_DeviceName;
	DWORD	m_dwScanTime;
	UINT	m_uChannel;
	UINT	m_uCount;
	CWinThread*     pThreadObject;

	//}}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 OnEnableBtn();
	afx_msg void OnDisableBtn();
	afx_msg void OnClose();
	virtual void OnOK();
	afx_msg void OnChangeScanTime();
	afx_msg void OnChangeCount();
	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 + -