Garmin Fleet Management Controller
2.19.0
|
Modal dialog allowing the user to set AOBRD Odometer value. More...
#include <CAobrdOdometerDlg.h>
Public Member Functions | |
CAobrdOdometerDlg (CWnd *aParent, FmiApplicationLayer &aCom) | |
Constructor. More... | |
virtual | ~CAobrdOdometerDlg () |
Destructor. More... | |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *aDataExchange) |
Perform dialog data exchange and validation. More... | |
afx_msg void | OnBnClickedOk () |
Click handler for the OK button. More... | |
afx_msg void | OnEnChangeAobrdOdometer () |
Edit Change handler for AOBRD odometer value text box. More... | |
BOOL | OnInitDialog () |
Initialize the dialog. More... | |
Protected Attributes | |
FmiApplicationLayer & | mCom |
Reference to the FMI communication controller that this dialog uses. More... | |
CString | odometer_value |
Odometer reading entered by the user. More... | |
Modal dialog allowing the user to set AOBRD Odometer value.
Definition at line 21 of file CAobrdOdometerDlg.h.
CAobrdOdometerDlg::CAobrdOdometerDlg | ( | CWnd * | aParent, |
FmiApplicationLayer & | aCom | ||
) |
Constructor.
aParent | The parent of this dialog |
aCom | Reference to the FMI communication controller |
Definition at line 31 of file CAobrdOdometerDlg.cpp.
|
virtual |
|
protectedvirtual |
Perform dialog data exchange and validation.
aDataExchange | The DDX context |
Definition at line 53 of file CAobrdOdometerDlg.cpp.
References IDC_AOBRD_ODOMETER_VALUE, and odometer_value.
Referenced by ~CAobrdOdometerDlg().
|
protected |
Click handler for the OK button.
Sends a speed to the client based on the input entered by the user.
Definition at line 94 of file CAobrdOdometerDlg.cpp.
References FmiApplicationLayer::mClientCodepage, mCom, odometer_value, FmiApplicationLayer::sendAOBRDOdometerValue(), and TRUE.
|
protected |
Edit Change handler for AOBRD odometer value text box.
Enables OK button if the odometer reading is not empty; disables OK button otherwise.
Definition at line 80 of file CAobrdOdometerDlg.cpp.
References FALSE, odometer_value, 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.
Definition at line 68 of file CAobrdOdometerDlg.cpp.
References TRUE.
|
protected |
Reference to the FMI communication controller that this dialog uses.
Definition at line 44 of file CAobrdOdometerDlg.h.
Referenced by OnBnClickedOk().
|
protected |
Odometer reading entered by the user.
Definition at line 47 of file CAobrdOdometerDlg.h.
Referenced by DoDataExchange(), OnBnClickedOk(), and OnEnChangeAobrdOdometer().