SENA Rhio10 User Manual
Page 47
47
CWEB_IO_TESTDlg::InitSample(CPoint pntStart, int iWidth,
int iHeight, int iTerm)
CWEB_IO_TESTDlg::InitSelComm();
3) Create Process Class.
m_rhCreate(CWnd *pParentWnd)
5.2.2.2 Event Handling procedure
1)
When an event occurs in the main window of the program:
①
The Connect button is clicked on.
CWEB_IO_TESTDlg::OnBnClickedButtonConnect()
TCP Connection
m_rhSockConnect (BYTE bAddr1, BYTE bAddr2, BYTE bAddr3,
BYTE bAddr4, int iPort)
Serial Connection
m_rhCommConnect (int iPort)
②
The Disconnect button is clicked on.
CWEB_IO_TESTDlg::OnBnClickedButtonClose()
③
The Set Button is clicked on.
CWEB_IO_TESTDlg::OnBnClickedButtonSetting()
④
The State View button is clicked on.
CWEB_IO_TESTDlg::OnBnClickedButtonStateView()
⑤
The Output Port button is clicked on.
COutputButton::OnBnClicked()
2) When an event occurs in the Setting window of the program:
①
The Factory Reset button is clicked on.
CSettingDlg::OnBnClickedButtonFactoryReset()
②
The Set Mode button is clicked on.
OnBnClickedButtonSetmode()
③
The Run Mode button is clicked on.
CSettingDlg::OnBnClickedButtonRunMode()
④
The Monitor Serial button is clicked on.
OnBnClickedButtonMonitorSerial()
⑤
The Set Serial button is clicked on.
CSettingDlg::OnBnClickedButtonSetSerial()