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

  1. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  2.  
  3. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  4. //  Microsoft Visual C++, your modifications will be overwritten.
  5.  
  6.  
  7. #include "stdafx.h"
  8. #include "rtmeterx.h"
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CRTMETERX
  12.  
  13. IMPLEMENT_DYNCREATE(CRTMETERX, CWnd)
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CRTMETERX properties
  17.  
  18. long CRTMETERX::GetWindowBackgroundColor()
  19. {
  20.     long result;
  21.     GetProperty(0x1, VT_I4, (void*)&result);
  22.     return result;
  23. }
  24.  
  25. void CRTMETERX::SetWindowBackgroundColor(long propVal)
  26. {
  27.     SetProperty(0x1, VT_I4, propVal);
  28. }
  29.  
  30. long CRTMETERX::GetWindowBorderColor()
  31. {
  32.     long result;
  33.     GetProperty(0x2, VT_I4, (void*)&result);
  34.     return result;
  35. }
  36.  
  37. void CRTMETERX::SetWindowBorderColor(long propVal)
  38. {
  39.     SetProperty(0x2, VT_I4, propVal);
  40. }
  41.  
  42. long CRTMETERX::GetPlotBackgroundColor()
  43. {
  44.     long result;
  45.     GetProperty(0x3, VT_I4, (void*)&result);
  46.     return result;
  47. }
  48.  
  49. void CRTMETERX::SetPlotBackgroundColor(long propVal)
  50. {
  51.     SetProperty(0x3, VT_I4, propVal);
  52. }
  53.  
  54. long CRTMETERX::GetWindowBorderStyle()
  55. {
  56.     long result;
  57.     GetProperty(0x4, VT_I4, (void*)&result);
  58.     return result;
  59. }
  60.  
  61. void CRTMETERX::SetWindowBorderStyle(long propVal)
  62. {
  63.     SetProperty(0x4, VT_I4, propVal);
  64. }
  65.  
  66. long CRTMETERX::GetWindowResizeMode()
  67. {
  68.     long result;
  69.     GetProperty(0x5, VT_I4, (void*)&result);
  70.     return result;
  71. }
  72.  
  73. void CRTMETERX::SetWindowResizeMode(long propVal)
  74. {
  75.     SetProperty(0x5, VT_I4, propVal);
  76. }
  77.  
  78. long CRTMETERX::GetWindowBorderThickness()
  79. {
  80.     long result;
  81.     GetProperty(0x6, VT_I4, (void*)&result);
  82.     return result;
  83. }
  84.  
  85. void CRTMETERX::SetWindowBorderThickness(long propVal)
  86. {
  87.     SetProperty(0x6, VT_I4, propVal);
  88. }
  89.  
  90. long CRTMETERX::GetMeterType()
  91. {
  92.     long result;
  93.     GetProperty(0x7, VT_I4, (void*)&result);
  94.     return result;
  95. }
  96.  
  97. void CRTMETERX::SetMeterType(long propVal)
  98. {
  99.     SetProperty(0x7, VT_I4, propVal);
  100. }
  101.  
  102. long CRTMETERX::GetMeterNeedleStyle()
  103. {
  104.     long result;
  105.     GetProperty(0x8, VT_I4, (void*)&result);
  106.     return result;
  107. }
  108.  
  109. void CRTMETERX::SetMeterNeedleStyle(long propVal)
  110. {
  111.     SetProperty(0x8, VT_I4, propVal);
  112. }
  113.  
  114. BOOL CRTMETERX::GetMeterDynTextEnable()
  115. {
  116.     BOOL result;
  117.     GetProperty(0x9, VT_BOOL, (void*)&result);
  118.     return result;
  119. }
  120.  
  121. void CRTMETERX::SetMeterDynTextEnable(BOOL propVal)
  122. {
  123.     SetProperty(0x9, VT_BOOL, propVal);
  124. }
  125.  
  126. BOOL CRTMETERX::GetMeterArcEnable()
  127. {
  128.     BOOL result;
  129.     GetProperty(0xa, VT_BOOL, (void*)&result);
  130.     return result;
  131. }
  132.  
  133. void CRTMETERX::SetMeterArcEnable(BOOL propVal)
  134. {
  135.     SetProperty(0xa, VT_BOOL, propVal);
  136. }
  137.  
  138. double CRTMETERX::GetMeterCenterX()
  139. {
  140.     double result;
  141.     GetProperty(0xb, VT_R8, (void*)&result);
  142.     return result;
  143. }
  144.  
  145. void CRTMETERX::SetMeterCenterX(double propVal)
  146. {
  147.     SetProperty(0xb, VT_R8, propVal);
  148. }
  149.  
  150. double CRTMETERX::GetMeterCenterY()
  151. {
  152.     double result;
  153.     GetProperty(0xc, VT_R8, (void*)&result);
  154.     return result;
  155. }
  156.  
  157. void CRTMETERX::SetMeterCenterY(double propVal)
  158. {
  159.     SetProperty(0xc, VT_R8, propVal);
  160. }
  161.  
  162. long CRTMETERX::GetMeterDynTextPrecision()
  163. {
  164.     long result;
  165.     GetProperty(0xd, VT_I4, (void*)&result);
  166.     return result;
  167. }
  168.  
  169. void CRTMETERX::SetMeterDynTextPrecision(long propVal)
  170. {
  171.     SetProperty(0xd, VT_I4, propVal);
  172. }
  173.  
  174. double CRTMETERX::GetMeterDiameter()
  175. {
  176.     double result;
  177.     GetProperty(0xe, VT_R8, (void*)&result);
  178.     return result;
  179. }
  180.  
  181. void CRTMETERX::SetMeterDiameter(double propVal)
  182. {
  183.     SetProperty(0xe, VT_R8, propVal);
  184. }
  185.  
  186. long CRTMETERX::GetMeterNumChannels()
  187. {
  188.     long result;
  189.     GetProperty(0xf, VT_I4, (void*)&result);
  190.     return result;
  191. }
  192.  
  193. void CRTMETERX::SetMeterNumChannels(long propVal)
  194. {
  195.     SetProperty(0xf, VT_I4, propVal);
  196. }
  197.  
  198. long CRTMETERX::GetMeterStartArc()
  199. {
  200.     long result;
  201.     GetProperty(0x10, VT_I4, (void*)&result);
  202.     return result;
  203. }
  204.  
  205. void CRTMETERX::SetMeterStartArc(long propVal)
  206. {
  207.     SetProperty(0x10, VT_I4, propVal);
  208. }
  209.  
  210. long CRTMETERX::GetMeterStopArc()
  211. {
  212.     long result;
  213.     GetProperty(0x11, VT_I4, (void*)&result);
  214.     return result;
  215. }
  216.  
  217. void CRTMETERX::SetMeterStopArc(long propVal)
  218. {
  219.     SetProperty(0x11, VT_I4, propVal);
  220. }
  221.  
  222. long CRTMETERX::GetMeterLowAlarmColor()
  223. {
  224.     long result;
  225.     GetProperty(0x12, VT_I4, (void*)&result);
  226.     return result;
  227. }
  228.  
  229. void CRTMETERX::SetMeterLowAlarmColor(long propVal)
  230. {
  231.     SetProperty(0x12, VT_I4, propVal);
  232. }
  233.  
  234. long CRTMETERX::GetMeterHighAlarmColor()
  235. {
  236.     long result;
  237.     GetProperty(0x13, VT_I4, (void*)&result);
  238.     return result;
  239. }
  240.  
  241. void CRTMETERX::SetMeterHighAlarmColor(long propVal)
  242. {
  243.     SetProperty(0x13, VT_I4, propVal);
  244. }
  245.  
  246. BOOL CRTMETERX::GetMeterAlarmArcsEnable()
  247. {
  248.     BOOL result;
  249.     GetProperty(0x14, VT_BOOL, (void*)&result);
  250.     return result;
  251. }
  252.  
  253. void CRTMETERX::SetMeterAlarmArcsEnable(BOOL propVal)
  254. {
  255.     SetProperty(0x14, VT_BOOL, propVal);
  256. }
  257.  
  258. double CRTMETERX::GetMeterAlarmArcThickness()
  259. {
  260.     double result;
  261.     GetProperty(0x15, VT_R8, (void*)&result);
  262.     return result;
  263. }
  264.  
  265. void CRTMETERX::SetMeterAlarmArcThickness(double propVal)
  266. {
  267.     SetProperty(0x15, VT_R8, propVal);
  268. }
  269.  
  270. double CRTMETERX::GetMeterHighAlarmStart()
  271. {
  272.     double result;
  273.     GetProperty(0x16, VT_R8, (void*)&result);
  274.     return result;
  275. }
  276.  
  277. void CRTMETERX::SetMeterHighAlarmStart(double propVal)
  278. {
  279.     SetProperty(0x16, VT_R8, propVal);
  280. }
  281.  
  282. double CRTMETERX::GetMeterHighAlarmStop()
  283. {
  284.     double result;
  285.     GetProperty(0x17, VT_R8, (void*)&result);
  286.     return result;
  287. }
  288.  
  289. void CRTMETERX::SetMeterHighAlarmStop(double propVal)
  290. {
  291.     SetProperty(0x17, VT_R8, propVal);
  292. }
  293.  
  294. double CRTMETERX::GetMeterLowAlarmStart()
  295. {
  296.     double result;
  297.     GetProperty(0x18, VT_R8, (void*)&result);
  298.     return result;
  299. }
  300.  
  301. void CRTMETERX::SetMeterLowAlarmStart(double propVal)
  302. {
  303.     SetProperty(0x18, VT_R8, propVal);
  304. }
  305.  
  306. double CRTMETERX::GetMeterLowAlarmStop()
  307. {
  308.     double result;
  309.     GetProperty(0x19, VT_R8, (void*)&result);
  310.     return result;
  311. }
  312.  
  313. void CRTMETERX::SetMeterLowAlarmStop(double propVal)
  314. {
  315.     SetProperty(0x19, VT_R8, propVal);
  316. }
  317.  
  318. long CRTMETERX::GetMeterTickPosition()
  319. {
  320.     long result;
  321.     GetProperty(0x1a, VT_I4, (void*)&result);
  322.     return result;
  323. }
  324.  
  325. void CRTMETERX::SetMeterTickPosition(long propVal)
  326. {
  327.     SetProperty(0x1a, VT_I4, propVal);
  328. }
  329.  
  330. long CRTMETERX::GetMeterTickLabelsPosition()
  331. {
  332.     long result;
  333.     GetProperty(0x1b, VT_I4, (void*)&result);
  334.     return result;
  335. }
  336.  
  337. void CRTMETERX::SetMeterTickLabelsPosition(long propVal)
  338. {
  339.     SetProperty(0x1b, VT_I4, propVal);
  340. }
  341.  
  342. long CRTMETERX::GetMeterTickLabelsColor()
  343. {
  344.     long result;
  345.     GetProperty(0x1c, VT_I4, (void*)&result);
  346.     return result;
  347. }
  348.  
  349. void CRTMETERX::SetMeterTickLabelsColor(long propVal)
  350. {
  351.     SetProperty(0x1c, VT_I4, propVal);
  352. }
  353.  
  354. long CRTMETERX::GetMeterTickLabelsSize()
  355. {
  356.     long result;
  357.     GetProperty(0x1d, VT_I4, (void*)&result);
  358.     return result;
  359. }
  360.  
  361. void CRTMETERX::SetMeterTickLabelsSize(long propVal)
  362. {
  363.     SetProperty(0x1d, VT_I4, propVal);
  364. }
  365.  
  366. long CRTMETERX::GetMeterTickLabelsFontStyle()
  367. {
  368.     long result;
  369.     GetProperty(0x1e, VT_I4, (void*)&result);
  370.     return result;
  371. }
  372.  
  373. void CRTMETERX::SetMeterTickLabelsFontStyle(long propVal)
  374. {
  375.     SetProperty(0x1e, VT_I4, propVal);
  376. }
  377.  
  378. CString CRTMETERX::GetMeterTickLabelsFont()
  379. {
  380.     CString result;
  381.     GetProperty(0x1f, VT_BSTR, (void*)&result);
  382.     return result;
  383. }
  384.  
  385. void CRTMETERX::SetMeterTickLabelsFont(LPCTSTR propVal)
  386. {
  387.     SetProperty(0x1f, VT_BSTR, propVal);
  388. }
  389.  
  390. long CRTMETERX::GetMeterLineColor()
  391. {
  392.     long result;
  393.     GetProperty(0x20, VT_I4, (void*)&result);
  394.     return result;
  395. }
  396.  
  397. void CRTMETERX::SetMeterLineColor(long propVal)
  398. {
  399.     SetProperty(0x20, VT_I4, propVal);
  400. }
  401.  
  402. CString CRTMETERX::GetMeterUnitsString()
  403. {
  404.     CString result;
  405.     GetProperty(0x21, VT_BSTR, (void*)&result);
  406.     return result;
  407. }
  408.  
  409. void CRTMETERX::SetMeterUnitsString(LPCTSTR propVal)
  410. {
  411.     SetProperty(0x21, VT_BSTR, propVal);
  412. }
  413.  
  414. BOOL CRTMETERX::GetMeterUnitsStringEnable()
  415. {
  416.     BOOL result;
  417.     GetProperty(0x22, VT_BOOL, (void*)&result);
  418.     return result;
  419. }
  420.  
  421. void CRTMETERX::SetMeterUnitsStringEnable(BOOL propVal)
  422. {
  423.     SetProperty(0x22, VT_BOOL, propVal);
  424. }
  425.  
  426. long CRTMETERX::GetMeterLineThickness()
  427. {
  428.     long result;
  429.     GetProperty(0x23, VT_I4, (void*)&result);
  430.     return result;
  431. }
  432.  
  433. void CRTMETERX::SetMeterLineThickness(long propVal)
  434. {
  435.     SetProperty(0x23, VT_I4, propVal);
  436. }
  437.  
  438. long CRTMETERX::GetMeterMinorTicks()
  439. {
  440.     long result;
  441.     GetProperty(0x24, VT_I4, (void*)&result);
  442.     return result;
  443. }
  444.  
  445. void CRTMETERX::SetMeterMinorTicks(long propVal)
  446. {
  447.     SetProperty(0x24, VT_I4, propVal);
  448. }
  449.  
  450. double CRTMETERX::GetMeterScaleMin()
  451. {
  452.     double result;
  453.     GetProperty(0x25, VT_R8, (void*)&result);
  454.     return result;
  455. }
  456.  
  457. void CRTMETERX::SetMeterScaleMin(double propVal)
  458. {
  459.     SetProperty(0x25, VT_R8, propVal);
  460. }
  461.  
  462. double CRTMETERX::GetMeterScaleMax()
  463. {
  464.     double result;
  465.     GetProperty(0x26, VT_R8, (void*)&result);
  466.     return result;
  467. }
  468.  
  469. void CRTMETERX::SetMeterScaleMax(double propVal)
  470. {
  471.     SetProperty(0x26, VT_R8, propVal);
  472. }
  473.  
  474. long CRTMETERX::GetMeterTickLabelsPrecision()
  475. {
  476.     long result;
  477.     GetProperty(0x27, VT_I4, (void*)&result);
  478.     return result;
  479. }
  480.  
  481. void CRTMETERX::SetMeterTickLabelsPrecision(long propVal)
  482. {
  483.     SetProperty(0x27, VT_I4, propVal);
  484. }
  485.  
  486. double CRTMETERX::GetMeterTickRelLength()
  487. {
  488.     double result;
  489.     GetProperty(0x28, VT_R8, (void*)&result);
  490.     return result;
  491. }
  492.  
  493. void CRTMETERX::SetMeterTickRelLength(double propVal)
  494. {
  495.     SetProperty(0x28, VT_R8, propVal);
  496. }
  497.  
  498. double CRTMETERX::GetMeterTickStep()
  499. {
  500.     double result;
  501.     GetProperty(0x29, VT_R8, (void*)&result);
  502.     return result;
  503. }
  504.  
  505. void CRTMETERX::SetMeterTickStep(double propVal)
  506. {
  507.     SetProperty(0x29, VT_R8, propVal);
  508. }
  509.  
  510. long CRTMETERX::GetMeterNormalAlarmColor()
  511. {
  512.     long result;
  513.     GetProperty(0x2a, VT_I4, (void*)&result);
  514.     return result;
  515. }
  516.  
  517. void CRTMETERX::SetMeterNormalAlarmColor(long propVal)
  518. {
  519.     SetProperty(0x2a, VT_I4, propVal);
  520. }
  521.  
  522. double CRTMETERX::GetMeterValueArcThickness()
  523. {
  524.     double result;
  525.     GetProperty(0x2b, VT_R8, (void*)&result);
  526.     return result;
  527. }
  528.  
  529. void CRTMETERX::SetMeterValueArcThickness(double propVal)
  530. {
  531.     SetProperty(0x2b, VT_R8, propVal);
  532. }
  533.  
  534. double CRTMETERX::GetMeterScaleCenter()
  535. {
  536.     double result;
  537.     GetProperty(0x2c, VT_R8, (void*)&result);
  538.     return result;
  539. }
  540.  
  541. void CRTMETERX::SetMeterScaleCenter(double propVal)
  542. {
  543.     SetProperty(0x2c, VT_R8, propVal);
  544. }
  545.  
  546. long CRTMETERX::GetMeterBorderColor()
  547. {
  548.     long result;
  549.     GetProperty(0x2d, VT_I4, (void*)&result);
  550.     return result;
  551. }
  552.  
  553. void CRTMETERX::SetMeterBorderColor(long propVal)
  554. {
  555.     SetProperty(0x2d, VT_I4, propVal);
  556. }
  557.  
  558. long CRTMETERX::GetMeterBorderThickness()
  559. {
  560.     long result;
  561.     GetProperty(0x2e, VT_I4, (void*)&result);
  562.     return result;
  563. }
  564.  
  565. void CRTMETERX::SetMeterBorderThickness(long propVal)
  566. {
  567.     SetProperty(0x2e, VT_I4, propVal);
  568. }
  569.  
  570. long CRTMETERX::GetMeterBorderStyle()
  571. {
  572.     long result;
  573.     GetProperty(0x2f, VT_I4, (void*)&result);
  574.     return result;
  575. }
  576.  
  577. void CRTMETERX::SetMeterBorderStyle(long propVal)
  578. {
  579.     SetProperty(0x2f, VT_I4, propVal);
  580. }
  581.  
  582. double CRTMETERX::GetMeterInitialValue()
  583. {
  584.     double result;
  585.     GetProperty(0x30, VT_R8, (void*)&result);
  586.     return result;
  587. }
  588.  
  589. void CRTMETERX::SetMeterInitialValue(double propVal)
  590. {
  591.     SetProperty(0x30, VT_R8, propVal);
  592. }
  593.  
  594. BOOL CRTMETERX::GetEnableInternalTimer()
  595. {
  596.     BOOL result;
  597.     GetProperty(0x31, VT_BOOL, (void*)&result);
  598.     return result;
  599. }
  600.  
  601. void CRTMETERX::SetEnableInternalTimer(BOOL propVal)
  602. {
  603.     SetProperty(0x31, VT_BOOL, propVal);
  604. }
  605.  
  606. double CRTMETERX::GetTimerFrequency()
  607. {
  608.     double result;
  609.     GetProperty(0x32, VT_R8, (void*)&result);
  610.     return result;
  611. }
  612.  
  613. void CRTMETERX::SetTimerFrequency(double propVal)
  614. {
  615.     SetProperty(0x32, VT_R8, propVal);
  616. }
  617.  
  618. double CRTMETERX::GetMeterBorderHeight()
  619. {
  620.     double result;
  621.     GetProperty(0x33, VT_R8, (void*)&result);
  622.     return result;
  623. }
  624.  
  625. void CRTMETERX::SetMeterBorderHeight(double propVal)
  626. {
  627.     SetProperty(0x33, VT_R8, propVal);
  628. }
  629.  
  630. double CRTMETERX::GetMeterBorderWidth()
  631. {
  632.     double result;
  633.     GetProperty(0x34, VT_R8, (void*)&result);
  634.     return result;
  635. }
  636.  
  637. void CRTMETERX::SetMeterBorderWidth(double propVal)
  638. {
  639.     SetProperty(0x34, VT_R8, propVal);
  640. }
  641.  
  642. BOOL CRTMETERX::GetSDataSimulationMode()
  643. {
  644.     BOOL result;
  645.     GetProperty(0x35, VT_BOOL, (void*)&result);
  646.     return result;
  647. }
  648.  
  649. void CRTMETERX::SetSDataSimulationMode(BOOL propVal)
  650. {
  651.     SetProperty(0x35, VT_BOOL, propVal);
  652. }
  653.  
  654. /////////////////////////////////////////////////////////////////////////////
  655. // CRTMETERX operations
  656.  
  657. CString CRTMETERX::GetTitleString(long title)
  658. {
  659.     CString result;
  660.     static BYTE parms[] =
  661.         VTS_I4;
  662.     InvokeHelper(0x3e, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  663.         title);
  664.     return result;
  665. }
  666.  
  667. void CRTMETERX::SetTitleString(long title, LPCTSTR lpszNewValue)
  668. {
  669.     static BYTE parms[] =
  670.         VTS_I4 VTS_BSTR;
  671.     InvokeHelper(0x3e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  672.          title, lpszNewValue);
  673. }
  674.  
  675. CString CRTMETERX::GetTitleFont(long title)
  676. {
  677.     CString result;
  678.     static BYTE parms[] =
  679.         VTS_I4;
  680.     InvokeHelper(0x3f, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  681.         title);
  682.     return result;
  683. }
  684.  
  685. void CRTMETERX::SetTitleFont(long title, LPCTSTR lpszNewValue)
  686. {
  687.     static BYTE parms[] =
  688.         VTS_I4 VTS_BSTR;
  689.     InvokeHelper(0x3f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  690.          title, lpszNewValue);
  691. }
  692.  
  693. long CRTMETERX::GetTitleColor(long title)
  694. {
  695.     long result;
  696.     static BYTE parms[] =
  697.         VTS_I4;
  698.     InvokeHelper(0x40, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  699.         title);
  700.     return result;
  701. }
  702.  
  703. void CRTMETERX::SetTitleColor(long title, long nNewValue)
  704. {
  705.     static BYTE parms[] =
  706.         VTS_I4 VTS_I4;
  707.     InvokeHelper(0x40, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  708.          title, nNewValue);
  709. }
  710.  
  711. long CRTMETERX::GetTitleFontStyle(long title)
  712. {
  713.     long result;
  714.     static BYTE parms[] =
  715.         VTS_I4;
  716.     InvokeHelper(0x41, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  717.         title);
  718.     return result;
  719. }
  720.  
  721. void CRTMETERX::SetTitleFontStyle(long title, long nNewValue)
  722. {
  723.     static BYTE parms[] =
  724.         VTS_I4 VTS_I4;
  725.     InvokeHelper(0x41, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  726.          title, nNewValue);
  727. }
  728.  
  729. long CRTMETERX::GetTitleFontSize(long title)
  730. {
  731.     long result;
  732.     static BYTE parms[] =
  733.         VTS_I4;
  734.     InvokeHelper(0x42, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  735.         title);
  736.     return result;
  737. }
  738.  
  739. void CRTMETERX::SetTitleFontSize(long title, long nNewValue)
  740. {
  741.     static BYTE parms[] =
  742.         VTS_I4 VTS_I4;
  743.     InvokeHelper(0x42, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  744.          title, nNewValue);
  745. }
  746.  
  747. long CRTMETERX::GetMeterChannelColor(long channel)
  748. {
  749.     long result;
  750.     static BYTE parms[] =
  751.         VTS_I4;
  752.     InvokeHelper(0x43, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
  753.         channel);
  754.     return result;
  755. }
  756.  
  757. void CRTMETERX::SetMeterChannelColor(long channel, long nNewValue)
  758. {
  759.     static BYTE parms[] =
  760.         VTS_I4 VTS_I4;
  761.     InvokeHelper(0x43, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  762.          channel, nNewValue);
  763. }
  764.  
  765. void CRTMETERX::UpdateDataValue(long nIndex, double rDataValue, BOOL bUpdate)
  766. {
  767.     static BYTE parms[] =
  768.         VTS_I4 VTS_R8 VTS_BOOL;
  769.     InvokeHelper(0x36, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  770.          nIndex, rDataValue, bUpdate);
  771. }
  772.  
  773. void CRTMETERX::UpdateMeter()
  774. {
  775.     InvokeHelper(0x37, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  776. }
  777.  
  778. CString CRTMETERX::GetMeterChannelTagName(long nChannel)
  779. {
  780.     CString result;
  781.     static BYTE parms[] =
  782.         VTS_I4;
  783.     InvokeHelper(0x44, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  784.         nChannel);
  785.     return result;
  786. }
  787.  
  788. void CRTMETERX::SetMeterChannelTagName(long nChannel, LPCTSTR lpszNewValue)
  789. {
  790.     static BYTE parms[] =
  791.         VTS_I4 VTS_BSTR;
  792.     InvokeHelper(0x44, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  793.          nChannel, lpszNewValue);
  794. }
  795.  
  796. BOOL CRTMETERX::SerializeLoadFile(LPCTSTR sFilename)
  797. {
  798.     BOOL result;
  799.     static BYTE parms[] =
  800.         VTS_BSTR;
  801.     InvokeHelper(0x38, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  802.         sFilename);
  803.     return result;
  804. }
  805.  
  806. BOOL CRTMETERX::SerializeSaveFile(LPCTSTR sFilename)
  807. {
  808.     BOOL result;
  809.     static BYTE parms[] =
  810.         VTS_BSTR;
  811.     InvokeHelper(0x39, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  812.         sFilename);
  813.     return result;
  814. }
  815.  
  816. void CRTMETERX::UpdateGraph()
  817. {
  818.     InvokeHelper(0x3a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  819. }
  820.  
  821. void CRTMETERX::UpdateDynData(double* rNewValues)
  822. {
  823.     static BYTE parms[] =
  824.         VTS_PR8;
  825.     InvokeHelper(0x3b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  826.          rNewValues);
  827. }
  828.  
  829. BOOL CRTMETERX::SavePageMeta(long mftype, LPCTSTR sFilename)
  830. {
  831.     BOOL result;
  832.     static BYTE parms[] =
  833.         VTS_I4 VTS_BSTR;
  834.     InvokeHelper(0x3c, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  835.         mftype, sFilename);
  836.     return result;
  837. }
  838.  
  839. BOOL CRTMETERX::CopyToClipboard()
  840. {
  841.     BOOL result;
  842.     InvokeHelper(0x3d, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  843.     return result;
  844. }
  845.  
  846. void CRTMETERX::AboutBox()
  847. {
  848.     InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  849. }
  850.