Garmin Fleet Management Controller  2.19.0
CCannedTxtMsgDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CCannedTxtMsgDlg.h
5 *
6 * Copyright 2008-2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CCannedTxtMsgDlg_H
11 #define CCannedTxtMsgDlg_H
12 
13 class CCannedTxtMsgDlg;
14 
15 #include "FmiApplicationLayer.h"
16 #include "CWndEventListener.h"
17 
18 //----------------------------------------------------------------------
23 //----------------------------------------------------------------------
24 class CCannedTxtMsgDlg : public CDialog, public CWndEventListener
25 {
26  DECLARE_DYNAMIC( CCannedTxtMsgDlg )
27  DECLARE_MESSAGE_MAP()
28 
29 public:
31  (
32  CWnd * aParent,
33  FmiApplicationLayer & aCom
34  );
35  virtual ~CCannedTxtMsgDlg();
36 
37 protected:
38  virtual void DoDataExchange
39  (
40  CDataExchange * aDataExchange
41  );
42 
43  BOOL OnInitDialog();
44  void updateListBox();
45  void PostNcDestroy();
46  afx_msg void OnBnClickedDelete();
47  afx_msg void OnBnClickedOk();
48  afx_msg void OnBnClickedSend();
49  afx_msg void OnCancel();
50  afx_msg void OnEnChangeEditBoxes();
51  afx_msg void OnEnKillfocusMessageEdit();
52  afx_msg void OnEnSetfocusMessageEdit();
53  afx_msg void OnLbnKillfocusMsgList();
54  afx_msg void OnLbnSetfocusList();
55  afx_msg LPARAM OnCannedMsgListChanged( WPARAM, LPARAM );
56  afx_msg void OnLbnSelchangeMsglist();
57 
60 
62  CString mMessageId;
63 
65  CString mMessageText;
66 
69 
72 };
73 
74 #endif
void updateListBox()
Update the canned message list box from the canned message map owned by FmiApplicationLayer.
afx_msg void OnEnSetfocusMessageEdit()
Handles the set focus event for the Message ID and Message Text edit boxes.
int mSelectedIndex
The index of the selected item in the list of messages.
afx_msg void OnLbnSetfocusList()
Handles the set focus event for the Message List box.
afx_msg void OnLbnKillfocusMsgList()
Handles the kill focus event for the Message list box.
afx_msg void OnBnClickedOk()
Button handler for the OK button.
afx_msg void OnCancel()
Handler for the Cancel action.
CCannedTxtMsgDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
Dialog allowing the user to manage the list of canned messages on the client.
afx_msg void OnEnChangeEditBoxes()
Edit handler for the Message ID and Message Text boxes.
afx_msg void OnBnClickedDelete()
Handles the Delete button clicked event.
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
afx_msg void OnLbnSelchangeMsglist()
Selection Changed handler for the Message List box.
CString mMessageText
The canned message text entered by the user.
afx_msg LPARAM OnCannedMsgListChanged(WPARAM, LPARAM)
Handler for the FMI_EVENT_CANNED_MSG_LIST_CHANGED event.
Serial communication controller for Garmin and FMI packets.
BOOL OnInitDialog()
Initialize the dialog.
EventListener that dispatches a Windows message.
FmiApplicationLayer & mCom
Reference to the communication layer.
CListBox mCannedMessageList
Listbox containing the canned messages on the client.
afx_msg void OnEnKillfocusMessageEdit()
Handles the kill focus event for the Message ID and Message Text edit boxes.
afx_msg void OnBnClickedSend()
Button handler for the Send button.
CString mMessageId
The canned message ID entered by the user.
virtual ~CCannedTxtMsgDlg()
[Brief description of the method]