Garmin Fleet Management Controller  2.19.0
CHosSettingDlg.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * CHosSettingDlg.h
5 *
6 * Copyright 2014 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #pragma once
11 
12 #include "FmiApplicationLayer.h"
13 
14 #if( FMI_SUPPORT_A615 )
15 
16 //----------------------------------------------------------------------
19 // toggle command to the device
20 //----------------------------------------------------------------------
21 class CHosSettingDlg : public CDialog
22 {
23  DECLARE_DYNAMIC(CHosSettingDlg)
24 
25 public:
26  static UINT CaptureSetting(
27  CWnd* pParent,
28  UINT titleStringId,
29  UINT valueLabelStringId,
30  UINT valueUnitStringId,
31  long valueLowerLimit,
32  long valueUpperLimit,
33  BOOL & enabled,
34  uint16 & value
35  );
36 
37  virtual ~CHosSettingDlg();
38 
39 // Dialog Data
40  enum { IDD = IDD_HOS_SETTING };
41 
42 protected:
44  CWnd* pParent
45  ); // standard constructor
46  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
47 
48  DECLARE_MESSAGE_MAP()
49 
50  BOOL OnInitDialog();
51  afx_msg void OnReevaluate();
52 
54  BOOL mDisabled;
55 
57  CString mValue;
58 
61 
64 
67 
70 
73 
74  };
75 
76 #endif
Form for individually capturing general HOS settings.
virtual ~CHosSettingDlg()
CHosSettingDlg(CWnd *pParent)
Constructor.
BOOL OnInitDialog()
Initialize the dialog.
static UINT CaptureSetting(CWnd *pParent, UINT titleStringId, UINT valueLabelStringId, UINT valueUnitStringId, long valueLowerLimit, long valueUpperLimit, BOOL &enabled, uint16 &value)
long mValueLowerLimit
Field value lower limit.
UINT mValueLabelStringId
Resource ID for the value field label.
#define IDD_HOS_SETTING
Definition: resource.h:56
UINT mTitleStringId
Resource ID for the window title.
UINT mValueUnitStringId
Resource ID for the value field units label.
unsigned short int uint16
16-bit unsigned integer
Definition: garmin_types.h:64
afx_msg void OnReevaluate()
Change handler for editable controls.
BOOL mDisabled
Control value representing radio button for enable/disable.
long mValueUpperLimit
Field value upper limit.
virtual void DoDataExchange(CDataExchange *pDX)
CString mValue
Control value representing the HOS setting's value.