graphlegendset.cpp

来自「操作系统实验演示代码(三个实验」· C++ 代码 · 共 46 行

CPP
46
字号
// GraphLegendSet.cpp : implementation file
//

#include "stdafx.h"
#include "GraphLegendSet.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CGraphLegendSet

CGraphLegendSet::CGraphLegendSet()
{
	legendId = 0;
	legendLabel = "";
}

CGraphLegendSet::~CGraphLegendSet()
{
}


BEGIN_MESSAGE_MAP(CGraphLegendSet, CStatic)
	//{{AFX_MSG_MAP(CGraphLegendSet)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGraphLegendSet message handlers

void CGraphLegendSet::SetLegendLabel(int id, CString legendText)
{
	legendId = id;
	legendLabel = legendText;
}

CString CGraphLegendSet::GetLegendLabel()
{
	return legendLabel;
}

⌨️ 快捷键说明

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