📄 i2ctestdlg.h
字号:
// I2cTestDlg.h : header file
//
#if !defined(AFX_I2CTESTDLG_H__5131AFFE_F20D_4E1C_9E08_24B4DBEFD213__INCLUDED_)
#define AFX_I2CTESTDLG_H__5131AFFE_F20D_4E1C_9E08_24B4DBEFD213__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CI2cTestDlg dialog
class CI2cTestDlg : public CDialog
{
private:
I2c Interface_Box;
int selected_address;
int selected_bitnum;
BOOL Get_Current_Sel();
// Construction
public:
CI2cTestDlg(CWnd* pParent = NULL); // standard constructor
void Show_Message();
// Dialog Data
//{{AFX_DATA(CI2cTestDlg)
enum { IDD = IDD_I2CTEST_DIALOG };
CButton m_opt1;
CListBox m_list_status;
CListBox m_list_bit;
CListBox m_list_address;
CButton m_solenoid;
CButton m_red;
CButton m_green;
CButton m_ext_card;
CButton m_coupler_relay;
CButton m_base_relay;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CI2cTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CI2cTestDlg)
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 OnButtonBaseRelay();
afx_msg void OnClearMessage();
afx_msg void OnButtonCouplerRelay();
afx_msg void OnButtonExtCard();
afx_msg void OnButtonGet();
afx_msg void OnButtonGreen();
afx_msg void OnButtonRed();
afx_msg void OnButtonRefresh();
afx_msg void OnButtonSet0();
afx_msg void OnButtonSet1();
afx_msg void OnButtonSolenoid();
afx_msg void OnButtonOpt1();
afx_msg void OnButtonResetAll();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_I2CTESTDLG_H__5131AFFE_F20D_4E1C_9E08_24B4DBEFD213__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -