📄 addialog.h
字号:
#if !defined(AFX_ADDIALOG_H__51CC4734_538A_11D2_866E_444553540000__INCLUDED_)
#define AFX_ADDIALOG_H__51CC4734_538A_11D2_866E_444553540000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// ADDIALOG.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CADDIALOG dialog
class CADDIALOG : public CDialog
{
// Construction
public:
int ad(int adch,int dly);
CADDIALOG(CWnd* pParent = NULL); // standard constructor
////////////////////////
//MY CODE STARTS HERE
////////////////////////
//typedef int(*AD)(unsigned char mode,unsigned short port,long delay);
//AD Ad;
typedef void (*pc7423reg)(void);
typedef int (*pc7423in)(int port,int dly);
typedef void (*pc7423out)(int port,int data,int dly);
pc7423reg reg;
pc7423in in;
pc7423out out;
int port;
long dly;
////////////////////////
//MY CODE ENDS HERE
////////////////////////
// Dialog Data
//{{AFX_DATA(CADDIALOG)
enum { IDD = IDD_AD_DIALOG };
float m_ad1;
float m_ad10;
float m_ad11;
float m_ad12;
float m_ad13;
float m_ad14;
float m_ad15;
float m_ad16;
float m_ad2;
float m_ad3;
float m_ad4;
float m_ad5;
float m_ad6;
float m_ad7;
float m_ad8;
float m_ad9;
int m_nc;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CADDIALOG)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CADDIALOG)
afx_msg void OnStopButton();
afx_msg void OnStartsButton();
afx_msg void OnAdexitButton();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnRadio1();
afx_msg void OnRadio2();
afx_msg void OnRadio3();
virtual BOOL OnInitDialog();
afx_msg void OnChangeEdit1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void xs_nc(CString msg="(0--10V)");
CString cyxs;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ADDIALOG_H__51CC4734_538A_11D2_866E_444553540000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -