dcex.h
来自「股票控件源代码」· C头文件 代码 · 共 38 行
H
38 行
// DCEx.h: interface for the CDCEx class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DCEX_H__C3CE58E6_E2E2_4B65_8251_DF2458B66009__INCLUDED_)
#define AFX_DCEX_H__C3CE58E6_E2E2_4B65_8251_DF2458B66009__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Base\as_transf.hxx"
#include "Base\as_position.hxx"
#include "Base\as_unitvec.hxx"
#define M_PI 3.1415926
class CDCEx
{
public:
CDCEx();
CDCEx(CDC *pDC);
virtual ~CDCEx();
protected:
CDC *m_pDC;
public:
CDC *GetDC(){return m_pDC;};
BOOL DrawArc(position Center,double long_radius,double short_radius,position Start,position End);
void DrawArc(position Start,position End,position Center,double Radius);
void DrawCircle(position Center,double Radius,BOOL bFill);
BOOL DrawLine(position p1,position p2);
BOOL DrawEllipse(position center,double lr,double sr,position start,position end,double rotate);
void DrawEllipse(position center,double lr,double sr,double rotate,BOOL bFill);
BOOL DrawPoint(position pt,int pt_shape,int pt_size,BOOL bSolid);
void DrawRect(position left_top,position right_bottom,double rotate,BOOL bFill);
void DrawTriangle(position start,position second, position end,BOOL bFill);
friend void SetDC(CDCEx *pDcEx,CDC *pDC);
};
#endif // !defined(AFX_DCEX_H__C3CE58E6_E2E2_4B65_8251_DF2458B66009__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?