Garmin Fleet Management Controller  2.19.0
CCdtChatDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CCdtChatDlg.h
5 *
6 * Copyright 2014 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #pragma once
11 
12 #include "CWebBrowser2.h"
13 #include "FmiApplicationLayer.h"
14 #include "CWndEventListener.h"
15 
16 #if( CDT_SUPPORT )
17 
18 // CCdtChatDlg dialog
19 
20 //----------------------------------------------------------------------
23 //----------------------------------------------------------------------
24 class CCdtChatDlg : public CDialog, public CWndEventListener
25 {
26  DECLARE_DYNAMIC(CCdtChatDlg)
27 
28 public:
29  CCdtChatDlg(
30  CWnd* pParent,
31  FmiApplicationLayer & aCom
32  );
33  virtual ~CCdtChatDlg();
34 
35 // Dialog Data
36  enum { IDD = IDD_CDT_CHAT };
37 
38 protected:
39  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
40 
41  DECLARE_MESSAGE_MAP()
42 
43  BOOL OnInitDialog();
44  afx_msg void OnSize
45  (
46  UINT aType,
47  int aClientWidth,
48  int aClientHeight
49  );
50 
51  void updateSize();
52 
53  afx_msg LRESULT OnCDTPacketReceived( WPARAM, LPARAM );
54 
55  virtual afx_msg void OnOK();
56 
57  CWebBrowser2 mBrowser;
58 
59  CEdit mInputField;
60 
61  int mPadding;
62  int mInputHeight;
63 
65  FmiApplicationLayer& mCom;
66 
67 };
68 
69 #endif
#define IDD_CDT_CHAT
Definition: resource.h:60
Serial communication controller for Garmin and FMI packets.
EventListener that dispatches a Windows message.
Web Browser ActiveX wrapper, generated by Visual Studio.
Definition: CWebBrowser2.h:24