19 ON_BN_CLICKED( IDOK, OnBnClickedOk )
20 ON_BN_CLICKED( IDCANCEL, OnBnClickedCancel )
27 CSelectCommPortDlg::CSelectCommPortDlg
32 , mSelectedPortIndex( 0 )
49 CDataExchange * aDataExchange
52 CDialog::DoDataExchange( aDataExchange );
68 CDialog::OnInitDialog();
70 portList->ResetContent();
72 std::list<CString> portNames;
75 std::list<CString>::const_iterator iter;
76 for( iter = portNames.begin(); iter != portNames.end(); iter++ )
78 portList->AddString( iter->GetString() );
81 portList->SetCurSel( 0 );
99 if( portName.Compare( tcpSocket ) == 0 )
static bool initSerialPort(const CString &aPortName)
Initializes the port passed in.
afx_msg void OnBnClickedCancel()
Click handler for the Cancel button.
virtual ~CSelectCommPortDlg()
Destructor.
Modal dialog allowing the user to select the port to use to communicate with the client.
afx_msg void OnBnClickedOk()
Click handler for the OK button.
BOOL OnInitDialog()
Initialize the dialog.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
static SerialPort * getInstance()
Get the one and only serial port object.
static void getPortList(std::list< CString > &aList)
Get the list of serial ports.
#define IDC_COMPORT_CBO_PORT
static bool initTcpPort()
int mSelectedPortIndex
Index of the selected port in the drop down.