SingleView.h
资源名称:MyStock.rar [点击查看]
上传用户:wenjimin
上传日期:2014-08-12
资源大小:111k
文件大小:3k
源码类别:
金融证券系统
开发平台:
Visual C++
- #if !defined(AFX_SINGLEVIEW_H__522CE4F3_3C87_43A9_9C53_03D441EF74FA__INCLUDED_)
- #define AFX_SINGLEVIEW_H__522CE4F3_3C87_43A9_9C53_03D441EF74FA__INCLUDED_
- #include "Afxtempl.h" //数组
- #include "Stockdrv.h"
- typedef struct tagKDJ
- {
- double k;
- double d;
- double j;
- }MYKDJ,*pMYKDJ;
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // SingleView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CSingleView view
- class CSingleView : public CView
- {
- protected:
- CSingleView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CSingleView)
- // Attributes
- public:
- int m_paintnum;//图数
- int pp;//移动分隔线的开关
- RCV_HISTORY_STRUCTEx m_rx; // 日线结构
- COLORREF m_Line8Color;
- COLORREF m_Line7Color;
- COLORREF m_Line6Color;
- COLORREF m_Line5Color;
- COLORREF m_Line4Color;
- COLORREF m_Line3Color;
- COLORREF m_Line2Color;
- COLORREF m_Line1Color;
- int i;
- CPoint m_ptOld;
- CPoint m_ptStart;
- int an;
- int Save_am;
- int m_days;
- int jan;
- int m_KWidth;//k线宽度(含间隔)
- int zx;//二分之一的k线宽度
- int m_y;
- int m_x;
- int pPointY[5];
- int m_pointY[5];
- // Operations
- public:
- void KDJ(int n);
- void MACD(int L,int S,int V);
- void KLine();
- void SetPointY(int Num);
- int MyKLine(CDC* pDC,int Num);
- void Myline(CDC* pDC);
- void KLine2(CDC* mpDC,RCV_HISTORY_STRUCTEx m_rx,int H,int L,int Y);
- void HisLine(int number,CArray<RCV_HISTORY_STRUCTEx,RCV_HISTORY_STRUCTEx>/*RCV_HISTORY_STRUCTEx*/*rx,int nPj,int ppL,int ppH,COLORREF crColor);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CSingleView)
- protected:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CSingleView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- protected:
- //{{AFX_MSG(CSingleView)
- afx_msg void OnDestroy();
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnKline();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_SINGLEVIEW_H__522CE4F3_3C87_43A9_9C53_03D441EF74FA__INCLUDED_)