⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rule.h

📁 股票控件源代码
💻 H
字号:
// Rule.h: interface for the CRule class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RULE_H__0C440AC0_E4FF_4EEB_97A9_1BAD4750977A__INCLUDED_)
#define AFX_RULE_H__0C440AC0_E4FF_4EEB_97A9_1BAD4750977A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//标尺
#define NORMAL 0
#define NOARROW 1//无箭头
#define NOSCALE 2//无刻度
#define NOARROW_AND_NOSCALE 3//无刻度无箭头
#define X_UP 11
#define X_DOWN 12
#define Y_LEFT 13
#define Y_RIGHT 14
#define SmallScale   21
#define Scale        22
#define LargeScale   23

#include "as_position.hxx"
class CRule  
{
public:
	CRule(int nStyle,double dScale);
	CRule(int nStyle,double dScale,double dLargeScale);
	virtual ~CRule();
public:
	double m_dLargeScale;//大刻度
    double m_dScale;//刻度
	int m_nStyle;//风格
public:
	long m_nArrowColor;//箭头颜色
	long m_nLineColor;//坐标颜色
	long m_nScaleColor;//刻度颜色
	double m_dLenth;//长度
	int m_nAxisType;
	position m_start,m_end;
public:
	void Draw(CDC *pDC);
	void DrawUnitText(CDC *pDC,int nType,int nIndex,CString strText);
	virtual void OnDrawUnit(int nType,int nIndex,int nScaleCount);
};

#endif // !defined(AFX_RULE_H__0C440AC0_E4FF_4EEB_97A9_1BAD4750977A__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -