34 CCommErrorDlg::CCommErrorDlg
36 TCHAR * aErrorMessage,
42 , mMessageText( _T("") )
45 mMessageText.Format( _T(
"%s"), aErrorMessage );
46 mComPortDown = aIsPortDown;
62 CDataExchange * aDataExchange
65 CDialog::DoDataExchange( aDataExchange );
80 CDialog::OnInitDialog();
84 GetDlgItem( IDOK )->ShowWindow( SW_HIDE );
120 ::SendMessage(hWndParent, WM_CLOSE, 0, 0);
144 #if( FMI_SUPPORT_A602 ) 161 if( IDOK == dlg.DoModal() )
179 CDialog::PostNcDestroy();
afx_msg void OnBnClickedRetry()
Click handler for the Retry button.
afx_msg void OnBnClickedChangeCom()
Click handler for the Change Port button.
void OnCancel()
Cancel action handler.
#define IDC_ERROR_BTN_RETRY
virtual ~CCommErrorDlg()
Destructor.
#define IDC_ERROR_BTN_EXIT
Modal dialog allowing the user to select the port to use to communicate with the client.
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
#define IDC_ERROR_TXT_MESSAGE
CString mMessageText
The message to display to the user.
void sendEnable(uint16 *aFeatureCodes=NULL, uint8 aFeatureCount=0)
Transmit an FMI Enable packet, and clear any error state.
static BOOL CALLBACK OnCloseHelper(HWND hWndParent, LPARAM lParam)
Helper for EnumThreadWindows call.
BOOL OnInitDialog()
Initialize the dialog.
BOOL mComPortDown
If TRUE, communication is down and the serial port will need to be reinitialized to continue...
Serial communication controller for Garmin and FMI packets.
void clearError()
Clear any communication error.
Modal dialog displaying a communication error.
afx_msg void OnBnClickedExit()
Click handler for the Exit button.
#define IDC_ERROR_BTN_CHANGE_PORT
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
FmiApplicationLayer & mCom
The FMI communication controller.
static void post(EventId aEventId, uint32 aEventData=0, void *aEventDataPtr=NULL, BOOL handleNow=FALSE)
Posts a message to all windows that have registered to get events.