Garmin Fleet Management Controller
2.19.0
|
Modal dialog allowing the user to select the port to use to communicate with the client. More...
#include <CSelectCommPortDlg.h>
Public Member Functions | |
CSelectCommPortDlg (CWnd *aParent=NULL) | |
Constructor. More... | |
virtual | ~CSelectCommPortDlg () |
Destructor. More... | |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *aDataExchange) |
Perform dialog data exchange and validation. More... | |
afx_msg void | OnBnClickedCancel () |
Click handler for the Cancel button. More... | |
afx_msg void | OnBnClickedOk () |
Click handler for the OK button. More... | |
BOOL | OnInitDialog () |
Initialize the dialog. More... | |
Protected Attributes | |
int | mSelectedPortIndex |
Index of the selected port in the drop down. More... | |
Modal dialog allowing the user to select the port to use to communicate with the client.
Definition at line 19 of file CSelectCommPortDlg.h.
CSelectCommPortDlg::CSelectCommPortDlg | ( | CWnd * | aParent = NULL | ) |
Constructor.
aParent | The parent of this dialog |
Definition at line 28 of file CSelectCommPortDlg.cpp.
|
virtual |
|
protectedvirtual |
Perform dialog data exchange and validation.
aDataExchange | The DDX context |
Definition at line 48 of file CSelectCommPortDlg.cpp.
References IDC_COMPORT_CBO_PORT, and mSelectedPortIndex.
Referenced by ~CSelectCommPortDlg().
|
protected |
Click handler for the Cancel button.
Close the dialog.
Definition at line 128 of file CSelectCommPortDlg.cpp.
|
protected |
Click handler for the OK button.
Starts the init process with the Com Port chosen.
Definition at line 90 of file CSelectCommPortDlg.cpp.
References SerialPort::getInstance(), IDC_COMPORT_CBO_PORT, SerialPort::initSerialPort(), TcpIpPort::initTcpPort(), mSelectedPortIndex, TCP_PORT_NAME, and TRUE.
|
protected |
Initialize the dialog.
This function is called when the window is created. It sets up the parent, so it can get info from and send a message to Com. It also enumerates the serial ports on the system (trying both the registry and CreateFile methods) and updates the combo box with the list of ports found.
Definition at line 66 of file CSelectCommPortDlg.cpp.
References SerialPort::getPortList(), IDC_COMPORT_CBO_PORT, and TRUE.
|
protected |
Index of the selected port in the drop down.
Definition at line 45 of file CSelectCommPortDlg.h.
Referenced by DoDataExchange(), and OnBnClickedOk().