config.cpp

来自「实现MFC不规则对话框」· C++ 代码 · 共 58 行

CPP
58
字号
// Config.cpp: implementation of the CConfig class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Clock.h"
#include "Config.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CConfig::CConfig()
{

}
CConfig::CConfig(int time,CString prompt,int subject)
{
	m_Time = time;
	m_Prompt = prompt;
	m_Subject = subject;
}

CConfig::~CConfig()
{

}

int CConfig::GetTime()
{
	return m_Time;
}
CString CConfig::GetPrompt()
{
	return m_Prompt;
}
int CConfig::GetSubject()
{
	return m_Subject;
}
void CConfig::SetTime(int time)
{
	m_Time = time;
}
void CConfig::SetPrompt(CString prompt)
{
	m_Prompt = prompt;
}
void CConfig::SetSubject(int subject)
{
	m_Subject = subject;
}

⌨️ 快捷键说明

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