home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / Bars / rtbarx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-29  |  5.3 KB  |  158 lines

  1. #if !defined(AFX_RTBARX_H__6182BB36_8033_11D1_A956_00C0F6A06F60__INCLUDED_)
  2. #define AFX_RTBARX_H__6182BB36_8033_11D1_A956_00C0F6A06F60__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CRTBARX wrapper class
  14.  
  15. class CRTBARX : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CRTBARX)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0xcda5f5e7, 0xde50, 0x11d0, { 0xa9, 0x56, 0x0, 0xc0, 0xf6, 0xa0, 0x6f, 0x60 } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.     long GetWindowBackgroundColor();
  43.     void SetWindowBackgroundColor(long);
  44.     long GetWindowBorderColor();
  45.     void SetWindowBorderColor(long);
  46.     long GetPlotBackgroundColor();
  47.     void SetPlotBackgroundColor(long);
  48.     long GetWindowBorderStyle();
  49.     void SetWindowBorderStyle(long);
  50.     double GetTopPlotArea();
  51.     void SetTopPlotArea(double);
  52.     double GetRightPlotArea();
  53.     void SetRightPlotArea(double);
  54.     double GetLeftPlotArea();
  55.     void SetLeftPlotArea(double);
  56.     long GetWindowResizeMode();
  57.     void SetWindowResizeMode(long);
  58.     long GetWindowBorderThickness();
  59.     void SetWindowBorderThickness(long);
  60.     double GetBottomPlotArea();
  61.     void SetBottomPlotArea(double);
  62.     long GetBarType();
  63.     void SetBarType(long);
  64.     long GetBarLabelsSize();
  65.     void SetBarLabelsSize(long);
  66.     long GetBarLabelsFontStyle();
  67.     void SetBarLabelsFontStyle(long);
  68.     long GetBarDynTextPrecision();
  69.     void SetBarDynTextPrecision(long);
  70.     long GetBarLabelsPrecision();
  71.     void SetBarLabelsPrecision(long);
  72.     long GetBarNumChannels();
  73.     void SetBarNumChannels(long);
  74.     double GetBarScaleMax();
  75.     void SetBarScaleMax(double);
  76.     double GetBarScaleMin();
  77.     void SetBarScaleMin(double);
  78.     BOOL GetBarDynTextEnable();
  79.     void SetBarDynTextEnable(BOOL);
  80.     double GetBarScaleCenter();
  81.     void SetBarScaleCenter(double);
  82.     CString GetBarUnitsString();
  83.     void SetBarUnitsString(LPCTSTR);
  84.     CString GetBarLabelsFont();
  85.     void SetBarLabelsFont(LPCTSTR);
  86.     long GetBarLowAlarmColor();
  87.     void SetBarLowAlarmColor(long);
  88.     long GetBarNormalAlarmColor();
  89.     void SetBarNormalAlarmColor(long);
  90.     long GetBarHighAlarmColor();
  91.     void SetBarHighAlarmColor(long);
  92.     CString GetBarHighAlarmString();
  93.     void SetBarHighAlarmString(LPCTSTR);
  94.     double GetBarHighAlarmValue();
  95.     void SetBarHighAlarmValue(double);
  96.     CString GetBarLowAlarmString();
  97.     void SetBarLowAlarmString(LPCTSTR);
  98.     double GetBarLowAlarmValue();
  99.     void SetBarLowAlarmValue(double);
  100.     long GetBarLabelsColor();
  101.     void SetBarLabelsColor(long);
  102.     BOOL GetBarAlarmMessageEnable();
  103.     void SetBarAlarmMessageEnable(BOOL);
  104.     BOOL GetBarAlarmMarksEnable();
  105.     void SetBarAlarmMarksEnable(BOOL);
  106.     CString GetBarNormalAlarmString();
  107.     void SetBarNormalAlarmString(LPCTSTR);
  108.     double GetBarSetpointValue();
  109.     void SetBarSetpointValue(double);
  110.     BOOL GetBarAutoPosition();
  111.     void SetBarAutoPosition(BOOL);
  112.     double GetBarInitialValue();
  113.     void SetBarInitialValue(double);
  114.     short GetBorderStyle();
  115.     void SetBorderStyle(short);
  116.     BOOL GetEnableInternalTimer();
  117.     void SetEnableInternalTimer(BOOL);
  118.     double GetTimerFrequency();
  119.     void SetTimerFrequency(double);
  120.     long GetBarNumTicks();
  121.     void SetBarNumTicks(long);
  122.     double GetBarTickSpace();
  123.     void SetBarTickSpace(double);
  124.     BOOL GetSDataSimulationMode();
  125.     void SetSDataSimulationMode(BOOL);
  126.  
  127. // Operations
  128. public:
  129.     CString GetTitleString(long title);
  130.     void SetTitleString(long title, LPCTSTR lpszNewValue);
  131.     CString GetTitleFont(long title);
  132.     void SetTitleFont(long title, LPCTSTR lpszNewValue);
  133.     long GetTitleColor(long title);
  134.     void SetTitleColor(long title, long nNewValue);
  135.     long GetTitleFontStyle(long title);
  136.     void SetTitleFontStyle(long title, long nNewValue);
  137.     long GetTitleFontSize(long title);
  138.     void SetTitleFontSize(long title, long nNewValue);
  139.     long GetBarChannelColor(long channel);
  140.     void SetBarChannelColor(long channel, long nNewValue);
  141.     void UpdateDataValue(long nIndex, double rDataValue, BOOL bUpdate);
  142.     CString GetBarChannelTagName(long nChannel);
  143.     void SetBarChannelTagName(long nChannel, LPCTSTR lpszNewValue);
  144.     BOOL SerializeLoadFile(LPCTSTR sFilename);
  145.     BOOL SerializeSaveFile(LPCTSTR sFilename);
  146.     void UpdateGraph();
  147.     void UpdateDynData(double* rNewValues);
  148.     void UpdateDynGraph();
  149.     BOOL SavePageMeta(long nmftype, LPCTSTR sFilename);
  150.     BOOL CopyToClipboard();
  151.     void AboutBox();
  152. };
  153.  
  154. //{{AFX_INSERT_LOCATION}}
  155. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  156.  
  157. #endif // !defined(AFX_RTBARX_H__6182BB36_8033_11D1_A956_00C0F6A06F60__INCLUDED_)
  158.