You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//////////////////////////////////////////////////////////////////////////////
//文件 GroupBase.h
//主要功能:
// 可解散的元素基类
//
//程序编写: 2010-05-15
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "pointnamerect.h"
#include "curveex.h"
#include ".\text.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//所有项的基类
class AFX_EXT_CLASS CGroupBase : public CPointNameRect
{
public:
CGroupBase(void);
virtual ~CGroupBase(void);
//显示或增加一条曲线/点,为了所有显示元素的解散与显示
virtual void Draw(void* pDC, COLORREF color, void* pxy);
virtual int Dissolution(void* pXY, CPositionList& list, COLORREF color); //解散生成实际的元素
//显示曲线与文字显示状态时pDC!=NULL,pxy==NULL解散状态时pxy!=NULL,pDC==NULL;
void DrawCurve(void* pDC, CCurveEx& curve, void* pxy);
void DrawText(void* pDC, CText& text, void* pxy);
void operator=(CGroupBase& wl);
COLORREF m_colCurve; //曲线颜色
COLORREF m_colText; //文字颜色
private:
protected: //ggff2025
CPositionList* m_pPosList;
};