Garmin Fleet Management Controller  2.19.0
CSelectCannedResponseDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CSelectCannedResponseDlg.h
5 *
6 * Copyright 2008-2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef CSelectCannedResponseDlg_H
11 #define CSelectCannedResponseDlg_H
12 
13 #include "stdafx.h"
14 #include "fmi.h"
15 #include "CFmiPcAppDlg.h"
16 
17 //----------------------------------------------------------------------
29 //----------------------------------------------------------------------
30 class CSelectCannedResponseDlg : public CDialog
31 {
32  DECLARE_DYNAMIC( CSelectCannedResponseDlg )
33  DECLARE_MESSAGE_MAP()
34 
35 public:
37  (
38  const MessageId & aMessageId,
39  char * aMessageText,
40  uint8 aMessageType,
41  CWnd * aParent,
42  FmiApplicationLayer & aCom
43  );
44  virtual ~CSelectCannedResponseDlg();
45 
46 protected:
47  virtual void DoDataExchange
48  (
49  CDataExchange * aDataExchange
50  );
51  BOOL OnInitDialog();
52  afx_msg void OnBnClickedOk();
53 
56 
58  CListBox mListBox;
59 
63 
66 
69 };
70 
71 #endif
virtual ~CSelectCannedResponseDlg()
Destructor.
#define TEXT_MSG_BUFFER_MAX_SIZE
The maximum size of any text message, in bytes.
Definition: fmi.h:172
MessageId mMessageId
The message ID passed in from the CNewTxtMsgDlg.
CSelectCannedResponseDlg(const MessageId &aMessageId, char *aMessageText, uint8 aMessageType, CWnd *aParent, FmiApplicationLayer &aCom)
Constructor.
Dialog allowing the user to select the canned responses that are allowed for a particular message...
BOOL OnInitDialog()
This function is called when the window is created.
char mMessageText[TEXT_MSG_BUFFER_MAX_SIZE]
The message text passed in from the CNewTxtMsgDlg.
Serial communication controller for Garmin and FMI packets.
FmiApplicationLayer & mCom
Reference to the FMI communication controller.
virtual void DoDataExchange(CDataExchange *aDataExchange)
Perform dialog data exchange and validation.
unsigned char uint8
8-bit unsigned integer
Definition: garmin_types.h:62
afx_msg void OnBnClickedOk()
OK button handler.
CListBox mListBox
List box containing the canned responses.
Encapsulation of a message ID.
Definition: MessageId.h:26
uint8 mMessageType
The message type passed in from the CNewTxtMsgDlg.