// 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.

/////////////////////////////////////////////////////////////////////////////
// CST_Curve wrapper class

class CST_Curve : public CWnd
{
protected:
	DECLARE_DYNCREATE(CST_Curve)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0x315e7f0e, 0x6f9c, 0x41a3, { 0xa6, 0x69, 0xa7, 0xe9, 0x62, 0x6d, 0x7c, 0xa0 } };
		return clsid;
	}
	virtual BOOL Create(LPCTSTR lpszClassName,
		LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect,
		CWnd* pParentWnd, UINT nID,
		CCreateContext* pContext = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }

    BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect, CWnd* pParentWnd, UINT nID,
		CFile* pPersist = NULL, BOOL bStorage = FALSE,
		BSTR bstrLicKey = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
		pPersist, bStorage, bstrLicKey); }

// Attributes
public:
	long GetForeColor();
	void SetForeColor(long);
	long GetBackColor();
	void SetBackColor(long);
	long GetAxisColor();
	void SetAxisColor(long);
	long GetGridColor();
	void SetGridColor(long);
	long GetPageChangeMSG();
	void SetPageChangeMSG(long);
	long GetMSGRecWnd();
	void SetMSGRecWnd(long);
	long GetTitleColor();
	void SetTitleColor(long);
	long GetFootNoteColor();
	void SetFootNoteColor(long);
	long GetRegister1();
	void SetRegister1(long);

// Operations
public:
	BOOL SetVInterval(short VInterval);
	BOOL SetHInterval(short HInterval);
	short GetScaleInterval();
	void EnableHelpTip(BOOL bEnable);
	BOOL SetLegendSpace(short LegendSpace);
	short GetLegendSpace();
	BOOL SetBeginValue(float fBeginValue);
	float GetBeginValue();
	BOOL SetBeginTime(LPCTSTR pBeginTime);
	BOOL SetBeginTime2(DATE fBeginTime);
	CString GetBeginTime();
	DATE GetBeginTime2();
	BOOL SetTimeSpan(double TimeStep);
	double GetTimeSpan();
	BOOL SetValueStep(float ValueStep);
	float GetValueStep();
	BOOL SetVPrecision(short Precision);
	short GetVPrecision();
	BOOL SetUnit(LPCTSTR pUnit);
	CString GetUnit();
	void TrimCoor();
	short AddLegend(long Id, LPCTSTR pSign, long PenColor, short PenStyle, short LineWidth, long BrushColor, short BrushStyle, short CurveMode, short NodeMode, short Mask, BOOL bUpdate);
	BOOL GetLegend(LPCTSTR pSign, long* pPenColor, short* pPenStyle, short* pLineWidth, long* pBrushColor, short* pBrushStyle, short* pCurveMode, short* pNodeMode);
	CString QueryLegend(long Id);
	short GetLegendCount();
	BOOL GetLegend2(short nIndex, long* pPenColor, short* pPenStyle, short* pLineWidth, long* pBrushColor, short* pBrushStyle, short* pCurveMode, short* pNodeMode);
	short GetLegendIdCount(short nIndex);
	long GetLegendId(short nIndex, short nIdIndex);
	BOOL DelLegend(long Id, BOOL bAll, BOOL bUpdate);
	BOOL DelLegend2(LPCTSTR pSign, BOOL bUpdate);
	short AddMainData(long Id, LPCTSTR pTime, float Value, short State, short VisibleState, BOOL bAddTrail);
	short AddMainData2(long Id, DATE Time, float Value, short State, short VisibleState, BOOL bAddTrail);
	void SetVisibleCoorRange(DATE MinTime, DATE MaxTime, float MinValue, float MaxValue, short Mask);
	void GetVisibleCoorRange(DATE* pMinTime, DATE* pMaxTime, float* pMinValue, float* pMaxValue);
	void DelRange(long Id, DATE BTime, DATE ETime, short Mask, BOOL bAll, BOOL bUpdate);
	void DelRange2(long Id, long nBegin, long nCount, BOOL bAll, BOOL bUpdate);
	BOOL FirstPage(BOOL bLast, BOOL bUpdate);
	short GotoPage(short RelativePage, BOOL bUpdate);
	BOOL SetZoom(short Zoom);
	short GetZoom();
	BOOL SetMaxLength(long MaxLength, long CutLength);
	long GetMaxLength();
	long GetCutLength();
	BOOL SetShowMode(short ShowMode);
	short GetShowMode();
	BOOL SetBkBitmap(short nIndex);
	short GetBkBitmap();
	BOOL SetFillDirection(long Id, short FillDirection, BOOL bUpdate);
	short GetFillDirection(long Id);
	BOOL SetMoveMode(short MoveMode);
	short GetMoveMode();
	void SetFont(long hFont);
	BOOL AddImageHandle(LPCTSTR pFileName, BOOL bShared);
	void AddBitmapHandle(long hBitmap, BOOL bShared);
	BOOL AddBitmapHandle2(long hInstance, LPCTSTR pszResourceName, BOOL bShared);
	BOOL AddBitmapHandle3(long hInstance, long nIDResource, BOOL bShared);
	long GetBitmapCount();
	BOOL SetBkMode(short BkMode);
	short GetBkMode();
	BOOL ExportImage(LPCTSTR pFileName);
	long ExportImageFromPage(LPCTSTR pFileName, long Id, long nBegin, long nCount, BOOL bAll, short Style);
	long ExportImageFromTime(LPCTSTR pFileName, long Id, DATE BTime, DATE ETime, short Mask, BOOL bAll, short Style);
	BOOL BatchExportImage(LPCTSTR pFileName, long nSecond);
	void EnableAutoTrimCoor(BOOL bEnable);
	long ImportFile(LPCTSTR pFileName, short Style, BOOL bAddTrail);
	CString GetCopyrightInfo();
	BOOL GetOneTimeRange(long Id, DATE* pMinTime, DATE* pMaxTime);
	BOOL GetOneValueRange(long Id, float* pMinValue, float* pMaxValue);
	BOOL GetOneFirstPos(long Id, DATE* pTime, float* pValue, BOOL bLast);
	BOOL GetTimeRange(DATE* pMinTime, DATE* pMaxTime);
	BOOL GetValueRange(float* pMinValue, float* pMaxValue);
	void GetViableTimeRange(DATE* pMinTime, DATE* pMaxTime);
	long AddMemMainData(long pMemMainData, long MemSize, BOOL bAddTrail);
	BOOL ShowCurve(long Id, BOOL bShow);
	long CheckUpdate(BSTR* pHomePage, BSTR* pVersion, BSTR* pModifyTime);
	void SetFootNote(LPCTSTR pFootNote);
	CString GetFootNote();
	long TrimCurve(long Id, short State, long nBegin, long nCount, short nStep, BOOL bAll);
	short PrintCurve(long Id, DATE BTime, DATE ETime, short Mask, short LeftMargin, short TopMargin, short RightMargin, short BottomMargin, LPCTSTR pTitle, LPCTSTR pFootNote, short Flag, BOOL bAll);
	long GetEventMask();
	long GetScaleNums();
	long ReportPageInfo();
	BOOL ShowLegend(LPCTSTR pSign, BOOL bShow);
	BOOL SelectCurve(long Id, BOOL bSelect);
	short DragCurve(short xStep, short yStep, BOOL bUpdate);
	BOOL VCenterCurve(long Id, BOOL bUpdate);
	BOOL GetSelectedCurve(long* pId);
	void EnableAdjustZOrder(BOOL bEnable);
	BOOL IsSelected(long Id);
	BOOL IsLegendVisible(LPCTSTR pSign);
	BOOL IsCurveVisible(long Id);
	BOOL IsCurveInCanvas(long Id);
	BOOL GotoCurve(long Id);
	void EnableZoom(BOOL bEnable);
	long GetCurveLength(long Id);
	CString GetLuaVer();
	DATE GetTimeData(short nCurveIndex, long nIndex);
	float GetValueData(short nCurveIndex, long nIndex);
	short GetState(short nCurveIndex, long nIndex);
	BOOL InsertMainData(short nCurveIndex, long nIndex, LPCTSTR pTime, float Value, short State, short Position);
	BOOL InsertMainData2(short nCurveIndex, long nIndex, DATE Time, float Value, short State, short Position);
	BOOL CanContinueEnum(long Id, short nCurveIndex, long nIndex);
	BOOL DelPoint(short nCurveIndex, long nIndex);
	short GetCurveCount();
	long GetCurve(short nIndex);
	BOOL RemoveBitmapHandle(long hBitmap, BOOL bDel);
	BOOL RemoveBitmapHandle2(short nIndex, BOOL bDel);
	long GetBitmap(short nIndex);
	short GetBitmapState(short nIndex);
	short GetBitmapState2(long hBitmap);
	BOOL SetBuddy(long hBuddy, short State);
	short GetBuddyCount();
	long GetBuddy(short nIndex);
	void SetCurveTitle(LPCTSTR pCurveTitle);
	CString GetCurveTitle();
	BOOL SetHUnit(LPCTSTR pHUnit);
	CString GetHUnit();
	BOOL SetHPrecision(short Precision);
	short GetHPrecision();
	BOOL SetCurveIndex(long Id, short nIndex);
	short GetCurveIndex(long Id);
	BOOL SetGridMode(short GridMode);
	short GetGridMode();
	void SetBenchmark(DATE Time, float Value);
	void GetBenchmark(DATE* pTime, float* pValue);
	short GetPower(long Id);
	long TrimCurve2(long Id, short State, DATE BTime, DATE ETime, short Mask, short nStep, BOOL bAll);
	BOOL ChangeId(long Id, long NewId);
	BOOL CloneCurve(long Id, long NewId);
	BOOL UniteCurve(long DesId, long nInsertPos, long Id, long nBegin, long nCount);
	BOOL UniteCurve2(long DesId, long nInsertPos, long Id, DATE BTime, DATE ETime, short Mask);
	BOOL UniteCurve3(long DesId, DATE fInsertPos, long Id, long nBegin, long nCount);
	BOOL UniteCurve4(long DesId, DATE fInsertPos, long Id, DATE BTime, DATE ETime, short Mask);
	BOOL OffSetCurve(long Id, double TimeSpan, float ValueStep, short Operator);
	long ArithmeticOperate(long DesId, long Id, short Operator);
	void ClearTempBuff();
	BOOL PreMallocMem(long Id, long size);
	long GetMemSize(long Id);
	BOOL IsCurve(long Id);
	void SetSorptionRange(short Range);
	short GetSorptionRange();
	BOOL IsLegend(LPCTSTR pSign);
	short AddLegendHelper(long Id, LPCTSTR pSign, long PenColor, short PenStyle, short LineWidth, BOOL bUpdate);
	BOOL GetActualPoint(long x, long y, DATE* pTime, float* pValue);
	long GetPointFromScreenPoint(long Id, long x, long y, short MaxRange);
	void EnableFullScreen(BOOL bEnable);
	DATE GetEndTime();
	float GetEndValue();
	void SetZLength(short ZLength);
	short GetZLength();
	BOOL SetCanvasBkBitmap(short nIndex);
	short GetCanvasBkBitmap();
	void SetLeftBkColor(long Color);
	long GetLeftBkColor();
	void SetBottomBkColor(long Color);
	long GetBottomBkColor();
	BOOL SetZOffset(long Id, short nOffset, BOOL bUpdate);
	long GetZOffset(long Id);
	void EnableFocusState(BOOL bEnable);
	BOOL SetReviseToolTip(short Type);
	short GetReviseToolTip();
	long ExportMetaFile(LPCTSTR pFileName, long Id, long nBegin, long nCount, BOOL bAll, short Style);
	void LimitOnePage(BOOL bLimit);
	BOOL FixCoor(DATE MinTime, DATE MaxTime, float MinValue, float MaxValue, short Mask);
	short GetFixCoor(DATE* pMinTime, DATE* pMaxTime, float* pMinValue, float* pMaxValue);
	BOOL RefreshLimitedOrFixedCoor();
	BOOL SetCanvasBkMode(short CanvasBkMode);
	short GetCanvasBkMode();
	void EnablePreview(BOOL bEnable);
	void SetWaterMark(LPCTSTR pWaterMark);
	long GetSysState();
	void SetTension(float Tension);
	float GetTension();
	long GetFont();
	BOOL SetXYFormat(LPCTSTR pSign, short Format);
	short GetXYFormat(LPCTSTR pSign);
	short GetXYFormat2(short nIndex);
	long LoadPlugIn(LPCTSTR pFileName, short Type, long Mask);
	BOOL AppendLegendEx(LPCTSTR pSign, long BeginNodeColor, long EndNodeColor, long SelectedNodeColor, short NodeModeEx);
	BOOL GetLegendEx(LPCTSTR pSign, long* pBeginNodeColor, long* pEndNodeColor, long* pSelectedNodeColor, short* pNodeModeEx);
	BOOL GetLegendEx2(short nIndex, long* pBeginNodeColor, long* pEndNodeColor, long* pSelectedNodeColor, short* pNodeModeEx);
	long GetSelectedNodeIndex(long Id);
	BOOL SetSelectedNodeIndex(long Id, long NewNodeIndex);
	long LoadLuaScript(LPCTSTR pFileName, short Type, long Mask);
	void SetShortcutKeyMask(long ShortcutKey);
	long GetShortcutKeyMask();
	long GetFrceHDC();
	BOOL SetBottomSpace(short Space);
	short GetBottomSpace();
	CString GetEndTime2();
	CString GetTimeData2(short nCurveIndex, long nIndex);
	short AddComment(DATE Time, float Value, short Position, short nBkBitmap, short Width, short Height, long TransColor, LPCTSTR pComment, long TextColor, short XOffSet, short YOffSet, BOOL bUpdate);
	BOOL DelComment(long nIndex, BOOL bAll, BOOL bUpdate);
	long GetCommentNum();
	BOOL GetComment(long nIndex, DATE* pTime, float* pValue, short* pPosition, short* pBkBitmap, short* pWidth, short* pHeight, long* pTransColor, BSTR* pComment, long* pTextColor, short* pXOffSet, short* pYOffSet);
	short SetComment(long nIndex, DATE Time, float Value, short Position, short nBkBitmap, short Width, short Height, long TransColor, LPCTSTR pComment, long TextColor, short XOffSet, short YOffSet, short Mask, BOOL bUpdate);
	BOOL SwapCommentIndex(long nIndex, long nOldIndex, BOOL bUpdate);
	BOOL ShowComment(long nIndex, BOOL bShow, BOOL bUpdate);
	BOOL IsCommentVisiable(long nIndex);
	void SetEventMask(long Event);
	BOOL SetFixedZoomMode(short ZoomMode);
	short GetFixedZoomMode();
	BOOL FixedZoom(short ZoomMode, short x, short y, BOOL bHoldMode);
	BOOL SetCommentPosition(short Position);
	short GetCommentPosition();
	BOOL GetPixelPoint(DATE Time, float Value, long* px, long* py);
	BOOL GetMemInfo(long* pTempBuffSize, long* pAllBuffSize, float* pUseRate, long* pId);
	BOOL IsCurveClosed(long Id);
	BOOL GetPosData(short nCurveIndex, long nIndex, long* px, long* py);
	void EnableHZoom(BOOL bEnable);
	BOOL SetHZoom(short Zoom);
	short GetHZoom();
	BOOL MoveCurveToLegend(long Id, LPCTSTR pSign);
	BOOL ChangeLegendName(LPCTSTR pFrom, LPCTSTR pTo);
	BOOL SetAutoRefresh(short TimeInterval, short NumInterval);
	long GetAutoRefresh();
	void EnableSelectCurve(BOOL bEnable);
	void SetToolTipDelay(short Delay);
	short GetToolTipDelay();
	BOOL SetLimitOnePageMode(short Mode);
	short GetLimitOnePageMode();
	BOOL AddInfiniteCurve(long Id, DATE Time, float Value, short State, BOOL bUpdate);
	BOOL DelInfiniteCurve(long Id, BOOL bAll, BOOL bUpdate);
	BOOL SetGraduationSize(long size);
	long GetGraduationSize();
	void SetMouseWheelMode(short Mode);
	short GetMouseWheelMode();
	BOOL SetMouseWheelSpeed(short Speed);
	short GetMouseWheelSpeed();
	void Refresh();
};
