mvpmodel.cpp

来自「MVP设计模式在vc下的构件」· C++ 代码 · 共 47 行

CPP
47
字号
// MVPModel.cpp: implementation of the CMVPModel class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
//#include "BarDemo1.h"
#include "..\MVP h\MVPModel.h"

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

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

CMVPModel::CMVPModel()
{
	m_PMVPView=NULL;
	m_PMVPPresenter=NULL;
	return;
}

CMVPModel::~CMVPModel()
{

}

void CMVPModel::SetViewPresenter(CMVPView *pView, CMVPPresenter *pPresenter)
{
	m_PMVPView=pView;
	m_PMVPPresenter=pPresenter;
	return;
}

LPVOID CMVPModel::CommandEvent(int EventID, LPVOID LPdat)
{
	return NULL;
}

//LPVOID CMVPModel::GetDat(int EventID)
//{
//
//}

⌨️ 快捷键说明

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