home *** CD-ROM | disk | FTP | other *** search
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
-
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
-
-
- #include "stdafx.h"
- #include "rtmeterx.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CRTMETERX
-
- IMPLEMENT_DYNCREATE(CRTMETERX, CWnd)
-
- /////////////////////////////////////////////////////////////////////////////
- // CRTMETERX properties
-
- long CRTMETERX::GetWindowBackgroundColor()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetWindowBackgroundColor(long propVal)
- {
- SetProperty(0x1, VT_I4, propVal);
- }
-
- long CRTMETERX::GetWindowBorderColor()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetWindowBorderColor(long propVal)
- {
- SetProperty(0x2, VT_I4, propVal);
- }
-
- long CRTMETERX::GetPlotBackgroundColor()
- {
- long result;
- GetProperty(0x3, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetPlotBackgroundColor(long propVal)
- {
- SetProperty(0x3, VT_I4, propVal);
- }
-
- long CRTMETERX::GetWindowBorderStyle()
- {
- long result;
- GetProperty(0x4, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetWindowBorderStyle(long propVal)
- {
- SetProperty(0x4, VT_I4, propVal);
- }
-
- long CRTMETERX::GetWindowResizeMode()
- {
- long result;
- GetProperty(0x5, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetWindowResizeMode(long propVal)
- {
- SetProperty(0x5, VT_I4, propVal);
- }
-
- long CRTMETERX::GetWindowBorderThickness()
- {
- long result;
- GetProperty(0x6, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetWindowBorderThickness(long propVal)
- {
- SetProperty(0x6, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterType()
- {
- long result;
- GetProperty(0x7, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterType(long propVal)
- {
- SetProperty(0x7, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterNeedleStyle()
- {
- long result;
- GetProperty(0x8, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterNeedleStyle(long propVal)
- {
- SetProperty(0x8, VT_I4, propVal);
- }
-
- BOOL CRTMETERX::GetMeterDynTextEnable()
- {
- BOOL result;
- GetProperty(0x9, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterDynTextEnable(BOOL propVal)
- {
- SetProperty(0x9, VT_BOOL, propVal);
- }
-
- BOOL CRTMETERX::GetMeterArcEnable()
- {
- BOOL result;
- GetProperty(0xa, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterArcEnable(BOOL propVal)
- {
- SetProperty(0xa, VT_BOOL, propVal);
- }
-
- double CRTMETERX::GetMeterCenterX()
- {
- double result;
- GetProperty(0xb, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterCenterX(double propVal)
- {
- SetProperty(0xb, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterCenterY()
- {
- double result;
- GetProperty(0xc, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterCenterY(double propVal)
- {
- SetProperty(0xc, VT_R8, propVal);
- }
-
- long CRTMETERX::GetMeterDynTextPrecision()
- {
- long result;
- GetProperty(0xd, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterDynTextPrecision(long propVal)
- {
- SetProperty(0xd, VT_I4, propVal);
- }
-
- double CRTMETERX::GetMeterDiameter()
- {
- double result;
- GetProperty(0xe, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterDiameter(double propVal)
- {
- SetProperty(0xe, VT_R8, propVal);
- }
-
- long CRTMETERX::GetMeterNumChannels()
- {
- long result;
- GetProperty(0xf, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterNumChannels(long propVal)
- {
- SetProperty(0xf, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterStartArc()
- {
- long result;
- GetProperty(0x10, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterStartArc(long propVal)
- {
- SetProperty(0x10, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterStopArc()
- {
- long result;
- GetProperty(0x11, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterStopArc(long propVal)
- {
- SetProperty(0x11, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterLowAlarmColor()
- {
- long result;
- GetProperty(0x12, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterLowAlarmColor(long propVal)
- {
- SetProperty(0x12, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterHighAlarmColor()
- {
- long result;
- GetProperty(0x13, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterHighAlarmColor(long propVal)
- {
- SetProperty(0x13, VT_I4, propVal);
- }
-
- BOOL CRTMETERX::GetMeterAlarmArcsEnable()
- {
- BOOL result;
- GetProperty(0x14, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterAlarmArcsEnable(BOOL propVal)
- {
- SetProperty(0x14, VT_BOOL, propVal);
- }
-
- double CRTMETERX::GetMeterAlarmArcThickness()
- {
- double result;
- GetProperty(0x15, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterAlarmArcThickness(double propVal)
- {
- SetProperty(0x15, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterHighAlarmStart()
- {
- double result;
- GetProperty(0x16, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterHighAlarmStart(double propVal)
- {
- SetProperty(0x16, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterHighAlarmStop()
- {
- double result;
- GetProperty(0x17, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterHighAlarmStop(double propVal)
- {
- SetProperty(0x17, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterLowAlarmStart()
- {
- double result;
- GetProperty(0x18, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterLowAlarmStart(double propVal)
- {
- SetProperty(0x18, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterLowAlarmStop()
- {
- double result;
- GetProperty(0x19, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterLowAlarmStop(double propVal)
- {
- SetProperty(0x19, VT_R8, propVal);
- }
-
- long CRTMETERX::GetMeterTickPosition()
- {
- long result;
- GetProperty(0x1a, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickPosition(long propVal)
- {
- SetProperty(0x1a, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterTickLabelsPosition()
- {
- long result;
- GetProperty(0x1b, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickLabelsPosition(long propVal)
- {
- SetProperty(0x1b, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterTickLabelsColor()
- {
- long result;
- GetProperty(0x1c, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickLabelsColor(long propVal)
- {
- SetProperty(0x1c, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterTickLabelsSize()
- {
- long result;
- GetProperty(0x1d, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickLabelsSize(long propVal)
- {
- SetProperty(0x1d, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterTickLabelsFontStyle()
- {
- long result;
- GetProperty(0x1e, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickLabelsFontStyle(long propVal)
- {
- SetProperty(0x1e, VT_I4, propVal);
- }
-
- CString CRTMETERX::GetMeterTickLabelsFont()
- {
- CString result;
- GetProperty(0x1f, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickLabelsFont(LPCTSTR propVal)
- {
- SetProperty(0x1f, VT_BSTR, propVal);
- }
-
- long CRTMETERX::GetMeterLineColor()
- {
- long result;
- GetProperty(0x20, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterLineColor(long propVal)
- {
- SetProperty(0x20, VT_I4, propVal);
- }
-
- CString CRTMETERX::GetMeterUnitsString()
- {
- CString result;
- GetProperty(0x21, VT_BSTR, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterUnitsString(LPCTSTR propVal)
- {
- SetProperty(0x21, VT_BSTR, propVal);
- }
-
- BOOL CRTMETERX::GetMeterUnitsStringEnable()
- {
- BOOL result;
- GetProperty(0x22, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterUnitsStringEnable(BOOL propVal)
- {
- SetProperty(0x22, VT_BOOL, propVal);
- }
-
- long CRTMETERX::GetMeterLineThickness()
- {
- long result;
- GetProperty(0x23, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterLineThickness(long propVal)
- {
- SetProperty(0x23, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterMinorTicks()
- {
- long result;
- GetProperty(0x24, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterMinorTicks(long propVal)
- {
- SetProperty(0x24, VT_I4, propVal);
- }
-
- double CRTMETERX::GetMeterScaleMin()
- {
- double result;
- GetProperty(0x25, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterScaleMin(double propVal)
- {
- SetProperty(0x25, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterScaleMax()
- {
- double result;
- GetProperty(0x26, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterScaleMax(double propVal)
- {
- SetProperty(0x26, VT_R8, propVal);
- }
-
- long CRTMETERX::GetMeterTickLabelsPrecision()
- {
- long result;
- GetProperty(0x27, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickLabelsPrecision(long propVal)
- {
- SetProperty(0x27, VT_I4, propVal);
- }
-
- double CRTMETERX::GetMeterTickRelLength()
- {
- double result;
- GetProperty(0x28, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickRelLength(double propVal)
- {
- SetProperty(0x28, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterTickStep()
- {
- double result;
- GetProperty(0x29, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterTickStep(double propVal)
- {
- SetProperty(0x29, VT_R8, propVal);
- }
-
- long CRTMETERX::GetMeterNormalAlarmColor()
- {
- long result;
- GetProperty(0x2a, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterNormalAlarmColor(long propVal)
- {
- SetProperty(0x2a, VT_I4, propVal);
- }
-
- double CRTMETERX::GetMeterValueArcThickness()
- {
- double result;
- GetProperty(0x2b, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterValueArcThickness(double propVal)
- {
- SetProperty(0x2b, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterScaleCenter()
- {
- double result;
- GetProperty(0x2c, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterScaleCenter(double propVal)
- {
- SetProperty(0x2c, VT_R8, propVal);
- }
-
- long CRTMETERX::GetMeterBorderColor()
- {
- long result;
- GetProperty(0x2d, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterBorderColor(long propVal)
- {
- SetProperty(0x2d, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterBorderThickness()
- {
- long result;
- GetProperty(0x2e, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterBorderThickness(long propVal)
- {
- SetProperty(0x2e, VT_I4, propVal);
- }
-
- long CRTMETERX::GetMeterBorderStyle()
- {
- long result;
- GetProperty(0x2f, VT_I4, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterBorderStyle(long propVal)
- {
- SetProperty(0x2f, VT_I4, propVal);
- }
-
- double CRTMETERX::GetMeterInitialValue()
- {
- double result;
- GetProperty(0x30, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterInitialValue(double propVal)
- {
- SetProperty(0x30, VT_R8, propVal);
- }
-
- BOOL CRTMETERX::GetEnableInternalTimer()
- {
- BOOL result;
- GetProperty(0x31, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetEnableInternalTimer(BOOL propVal)
- {
- SetProperty(0x31, VT_BOOL, propVal);
- }
-
- double CRTMETERX::GetTimerFrequency()
- {
- double result;
- GetProperty(0x32, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetTimerFrequency(double propVal)
- {
- SetProperty(0x32, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterBorderHeight()
- {
- double result;
- GetProperty(0x33, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterBorderHeight(double propVal)
- {
- SetProperty(0x33, VT_R8, propVal);
- }
-
- double CRTMETERX::GetMeterBorderWidth()
- {
- double result;
- GetProperty(0x34, VT_R8, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetMeterBorderWidth(double propVal)
- {
- SetProperty(0x34, VT_R8, propVal);
- }
-
- BOOL CRTMETERX::GetSDataSimulationMode()
- {
- BOOL result;
- GetProperty(0x35, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CRTMETERX::SetSDataSimulationMode(BOOL propVal)
- {
- SetProperty(0x35, VT_BOOL, propVal);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CRTMETERX operations
-
- CString CRTMETERX::GetTitleString(long title)
- {
- CString result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3e, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
- title);
- return result;
- }
-
- void CRTMETERX::SetTitleString(long title, LPCTSTR lpszNewValue)
- {
- static BYTE parms[] =
- VTS_I4 VTS_BSTR;
- InvokeHelper(0x3e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- title, lpszNewValue);
- }
-
- CString CRTMETERX::GetTitleFont(long title)
- {
- CString result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x3f, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
- title);
- return result;
- }
-
- void CRTMETERX::SetTitleFont(long title, LPCTSTR lpszNewValue)
- {
- static BYTE parms[] =
- VTS_I4 VTS_BSTR;
- InvokeHelper(0x3f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- title, lpszNewValue);
- }
-
- long CRTMETERX::GetTitleColor(long title)
- {
- long result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x40, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
- title);
- return result;
- }
-
- void CRTMETERX::SetTitleColor(long title, long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4;
- InvokeHelper(0x40, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- title, nNewValue);
- }
-
- long CRTMETERX::GetTitleFontStyle(long title)
- {
- long result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x41, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
- title);
- return result;
- }
-
- void CRTMETERX::SetTitleFontStyle(long title, long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4;
- InvokeHelper(0x41, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- title, nNewValue);
- }
-
- long CRTMETERX::GetTitleFontSize(long title)
- {
- long result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x42, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
- title);
- return result;
- }
-
- void CRTMETERX::SetTitleFontSize(long title, long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4;
- InvokeHelper(0x42, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- title, nNewValue);
- }
-
- long CRTMETERX::GetMeterChannelColor(long channel)
- {
- long result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x43, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, parms,
- channel);
- return result;
- }
-
- void CRTMETERX::SetMeterChannelColor(long channel, long nNewValue)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4;
- InvokeHelper(0x43, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- channel, nNewValue);
- }
-
- void CRTMETERX::UpdateDataValue(long nIndex, double rDataValue, BOOL bUpdate)
- {
- static BYTE parms[] =
- VTS_I4 VTS_R8 VTS_BOOL;
- InvokeHelper(0x36, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- nIndex, rDataValue, bUpdate);
- }
-
- void CRTMETERX::UpdateMeter()
- {
- InvokeHelper(0x37, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- CString CRTMETERX::GetMeterChannelTagName(long nChannel)
- {
- CString result;
- static BYTE parms[] =
- VTS_I4;
- InvokeHelper(0x44, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
- nChannel);
- return result;
- }
-
- void CRTMETERX::SetMeterChannelTagName(long nChannel, LPCTSTR lpszNewValue)
- {
- static BYTE parms[] =
- VTS_I4 VTS_BSTR;
- InvokeHelper(0x44, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- nChannel, lpszNewValue);
- }
-
- BOOL CRTMETERX::SerializeLoadFile(LPCTSTR sFilename)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x38, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- sFilename);
- return result;
- }
-
- BOOL CRTMETERX::SerializeSaveFile(LPCTSTR sFilename)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x39, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- sFilename);
- return result;
- }
-
- void CRTMETERX::UpdateGraph()
- {
- InvokeHelper(0x3a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-
- void CRTMETERX::UpdateDynData(double* rNewValues)
- {
- static BYTE parms[] =
- VTS_PR8;
- InvokeHelper(0x3b, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- rNewValues);
- }
-
- BOOL CRTMETERX::SavePageMeta(long mftype, LPCTSTR sFilename)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_I4 VTS_BSTR;
- InvokeHelper(0x3c, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- mftype, sFilename);
- return result;
- }
-
- BOOL CRTMETERX::CopyToClipboard()
- {
- BOOL result;
- InvokeHelper(0x3d, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
-
- void CRTMETERX::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-