Garmin Fleet Management Controller  2.19.0
CTxtMsgDeleteRequestDlg Class Reference

Modal dialog allowing the user to request the status of a server to client text message. More...

#include <CTxtMsgDeleteRequestDlg.h>

+ Inheritance diagram for CTxtMsgDeleteRequestDlg:

Public Member Functions

 CTxtMsgDeleteRequestDlg (CWnd *aParent, FmiApplicationLayer &aCom)
 Constructor. More...
 
virtual ~CTxtMsgDeleteRequestDlg ()
 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 OnEnChangeEditMsgId ()
 Edit Change handler for Message ID text box. More...
 
BOOL OnInitDialog ()
 Initialize the dialog. More...
 

Protected Attributes

FmiApplicationLayermCom
 Reference to the FMI communication controller. More...
 
CString mMessageId
 Message ID entered by the user. More...
 

Detailed Description

Modal dialog allowing the user to request the status of a server to client text message.

Since
Protocol A604

Definition at line 22 of file CTxtMsgDeleteRequestDlg.h.

Constructor & Destructor Documentation

CTxtMsgDeleteRequestDlg::CTxtMsgDeleteRequestDlg ( CWnd *  aParent,
FmiApplicationLayer aCom 
)

Constructor.

Parameters
aParentThe parent of this dialog
aComReference to the FMI communication controller

Definition at line 28 of file CTxtMsgDeleteRequestDlg.cpp.

CTxtMsgDeleteRequestDlg::~CTxtMsgDeleteRequestDlg ( )
virtual

Destructor.

Definition at line 41 of file CTxtMsgDeleteRequestDlg.cpp.

References DoDataExchange().

Member Function Documentation

void CTxtMsgDeleteRequestDlg::DoDataExchange ( CDataExchange *  aDataExchange)
protectedvirtual

Perform dialog data exchange and validation.

Parameters
aDataExchangeThe DDX context

Definition at line 50 of file CTxtMsgDeleteRequestDlg.cpp.

References IDC_MSGDEL_EDIT_MSG_ID, and mMessageId.

Referenced by ~CTxtMsgDeleteRequestDlg().

void CTxtMsgDeleteRequestDlg::OnBnClickedOk ( )
protected

Click handler for the OK button.

Sends a Text Message Status Request to the client based on the input entered by the user. If the message ID entered begins with 0x, the MessageId constructor will interpret it as hexadecimal.

Definition at line 97 of file CTxtMsgDeleteRequestDlg.cpp.

References FmiApplicationLayer::mClientCodepage, mCom, mMessageId, FmiApplicationLayer::sendMessageDeleteRequest(), and TRUE.

void CTxtMsgDeleteRequestDlg::OnEnChangeEditMsgId ( )
protected

Edit Change handler for Message ID text box.

Enables OK button if the message ID is not empty; disables OK button otherwise.

Definition at line 77 of file CTxtMsgDeleteRequestDlg.cpp.

References FALSE, mMessageId, and TRUE.

BOOL CTxtMsgDeleteRequestDlg::OnInitDialog ( )
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 FmiApplicationLayer.

Returns
TRUE, since this function does not set focus to a control

Definition at line 65 of file CTxtMsgDeleteRequestDlg.cpp.

References TRUE.

Member Data Documentation

FmiApplicationLayer& CTxtMsgDeleteRequestDlg::mCom
protected

Reference to the FMI communication controller.

Definition at line 47 of file CTxtMsgDeleteRequestDlg.h.

Referenced by OnBnClickedOk().

CString CTxtMsgDeleteRequestDlg::mMessageId
protected

Message ID entered by the user.

Definition at line 50 of file CTxtMsgDeleteRequestDlg.h.

Referenced by DoDataExchange(), OnBnClickedOk(), and OnEnChangeEditMsgId().


The documentation for this class was generated from the following files: