| | |
| | | int CDialogCommSet1::ShowParams()
|
| | | {
|
| | | // TODO: 在此处添加实现代码.
|
| | | CString s1;
|
| | | ((CComboBox *)GetDlgItem(IDC_COMBO_NETWORK_TYPE))->SetCurSel(0);
|
| | | ((CComboBox *)GetDlgItem(IDC_COMBO_PORT))->SetCurSel(0);
|
| | |
|
| | | ((CComboBox *)GetDlgItem(IDC_COMBO_PORT))->SetCurSel(m_nComNum-1);
|
| | | ((CComboBox *)GetDlgItem(IDC_COMBO_BAUD))->SetCurSel(7);
|
| | | s1.Format(_T("%d"), m_nBaudRate);
|
| | | ((CComboBox*)GetDlgItem(IDC_COMBO_BAUD))->SelectString(0, s1);
|
| | |
|
| | | ((CButton *)GetDlgItem(IDC_RADIO_DATA_LENGTH_8B))->SetCheck(1);
|
| | |
|
| | |
| | |
|
| | | UpdateComPortList();
|
| | |
|
| | | CString s1;
|
| | | if (m_bOpened) s1 = _T("已连接"); else s1 = _T("未连接");
|
| | | ((CStatic*)GetDlgItem(IDC_STATIC_STATE))->SetWindowText(s1);
|
| | | return 0;
|
| | |
| | | CString baudstr;
|
| | | GetDlgItemText(IDC_COMBO_BAUD, baudstr);
|
| | | m_nBaudRate = _tstoi(baudstr);
|
| | |
|
| | | m_Settings = "8,N,1";
|
| | |
|
| | | ((CButton *)GetDlgItem(IDC_RADIO_DATA_LENGTH_8B))->GetCheck();
|