Garmin Fleet Management Controller  2.19.0
CManageCannedResponseDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CManageCannedResponseDlg.h
5 *
6 * Copyright 2008-2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CManageCannedResponseDlg_H
11 #define CManageCannedResponseDlg_H
12 
14 
15 #include "CWndEventListener.h"
16 #include "FmiApplicationLayer.h"
17 
18 //----------------------------------------------------------------------
25 //----------------------------------------------------------------------
26 class CManageCannedResponseDlg : public CDialog, public CWndEventListener
27 {
28  DECLARE_DYNAMIC( CManageCannedResponseDlg )
29  DECLARE_MESSAGE_MAP()
30 
31 public:
33  (
34  CWnd * aParent,
35  FmiApplicationLayer & aCom
36  );
37 
38  virtual ~CManageCannedResponseDlg();
39 
40 protected:
41  virtual void DoDataExchange
42  (
43  CDataExchange * aDataExchange
44  );
45 
46  BOOL OnInitDialog();
47  void updateListBox();
48  void PostNcDestroy();
49  afx_msg void OnBnClickedDelete();
50  afx_msg LPARAM OnCannedRespListChanged( WPARAM, LPARAM );
51  afx_msg void OnBnClickedSend();
52  afx_msg void OnEnChangeRspBoxes();
53  afx_msg void OnBnClickedOk();
54  afx_msg void OnCancel();
55  afx_msg void OnEnSetfocusResponseEdit();
56  afx_msg void OnEnKillfocusResponseEdit();
57  afx_msg void OnLbnSelchangeResponselist();
58  afx_msg void OnLbnSetfocusResponselist();
59  afx_msg void OnLbnKillfocusResponselist();
60 
61 protected:
64 
66  CListBox mListBox;
67 
70 
72  CString mResponseId;
73 
75  CString mResponseText;
76 };
77 
78 #endif
CString mResponseId
DDX member: the contents of the Response ID edit box.
afx_msg void OnLbnSelchangeResponselist()
Selection Changed handler for the Response List box.
afx_msg void OnCancel()
Handler for the Cancel action.
Dialog allowing the user to manage canned responses.
afx_msg void OnLbnKillfocusResponselist()
Handles the kill focus event for the Response List box.
void PostNcDestroy()
Called by MFC after the window has been destroyed; performs final termination activities.
int mSelectedResponseIndex
Index of the list box item currently selected.
afx_msg void OnBnClickedSend()
Button handler for the Send button.
afx_msg void OnEnSetfocusResponseEdit()
Handles the set focus event for the Response ID and Response Text edit boxes.
CManageCannedResponseDlg(CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
afx_msg void OnEnChangeRspBoxes()
Edit handler for the Response ID and Response Text boxes.
CString mResponseText
DDX member: the contents of the Response Text edit box.
Serial communication controller for Garmin and FMI packets.
void updateListBox()
Update the canned response list box from the canned response map owned by FmiApplicationLayer.
CListBox mListBox
List box control containing the canned responses.
EventListener that dispatches a Windows message.
afx_msg void OnBnClickedDelete()
Button handler for the Delete button.
afx_msg void OnEnKillfocusResponseEdit()
Handles the kill focus event for the Response ID and Response Text edit boxes.
virtual ~CManageCannedResponseDlg()
Destructor.
afx_msg void OnLbnSetfocusResponselist()
Handles the set focus event for the Response List.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
BOOL OnInitDialog()
This function is called when the window is created.
afx_msg void OnBnClickedOk()
Button handler for the OK button.
afx_msg LPARAM OnCannedRespListChanged(WPARAM, LPARAM)
Handler for FMI_EVENT_CANNED_RESP_LIST_CHANGED event.